Skip to content

Conversation

@dellis1972
Copy link
Contributor

Dropbox recently invalidated ALL shared folders/links.
So we need to use new links.

Also on windows android-support-multidex.jar in not in
lib/mandroid... lib/mandroid does NOT exist. So we need
to add a path so we pick that up from the right location.

binding.AndroidClassParser = "class-parse";
binding.Jars.Add (new AndroidItem.EmbeddedJar (() => "$(MonoDroidInstallDirectory)\\lib\\mandroid\\android-support-multidex.jar"));
var multidexJar = Environment.OSVersion.Platform == PlatformID.Win32NT
? Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.ProgramFilesX86), "MSBuild", "Xamarin", "Android", "android-support-multidex.jar")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not hardcode %ProgramFiles(x86)%\..., because eventually we'll want to be able to build and run unit tests on Windows, and that environment will not be in %ProgramFiles(x86)%...

Perhaps we should go with this for now, and then fix it when we address PR #253?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outside of VS2017 (VS2015 etc) it is in Program Files (x86)..
Not sure how we run the tests under VS2017 because the locations depend on the version you run. Which sucks in my opinion.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "proper" mechanism is to use the XAMARIN_ANDROID_REGKEY environment variable. This is how Visual Studio communicates to our build system where things are located...ish.

Related?

binding.Jars.Add (new AndroidItem.EmbeddedJar (() => "$(MonoDroidInstallDirectory)\\lib\\mandroid\\android-support-multidex.jar"));
var multidexJar = Environment.OSVersion.Platform == PlatformID.Win32NT
? Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.ProgramFilesX86), "MSBuild", "Xamarin", "Android", "android-support-multidex.jar")
: "$(MonoDroidInstallDirectory)\\lib\\mandroid\\android-support-multidex.jar";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not Path.Combine() here as well? Or at least use @"..." strings?

@dellis1972 dellis1972 changed the title [Xamarin.Android.Build.Tests] Fix some of the dropbox links and the locatsion of android-support-multidex.jar [Xamarin.Android.Build.Tests] Fix some of the dropbox links and the location of android-support-multidex.jar Apr 20, 2017
…ocation of android-support-multidex.jar

Dropbox recently invalidated ALL shared folders/links.
So we need to use new links.

Also on windows android-support-multidex.jar in not in
lib/mandroid... lib/mandroid does NOT exist. So we need
to add a path so we pick that up from the right location.
@jonpryor jonpryor merged commit 6fe6387 into dotnet:master Apr 21, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants