-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Xamarin Android update (8.1.5.0) won't build in release mode, no such file or directory (classes.zip) error #1257
Comments
Hey @justintoth Thanks for the report! Unfortunately your reproduction steps do not quite reproduce for me. I believe there are a few discrepancies here.
I would recommend checking each of these paths from your proguard invocation(specifically the failure paths) to ensure they are all valid on disk locally:
e.g:
This will help us pinpoint the area this is occuring. Also, if it's possible, can you please upload a reproduction project that demonstrates this issue? This will help us get a better idea of the situation. I would guess this was introduced from the following PR: https://github.com/xamarin/xamarin-android/pull/1142/files in which the |
@justintoth does this happen after a Clean -> Build in Release or an immediate build after upgrade? Looking at your build output [1] the _CompileJava target was skipped, which suggests there was a previous build present. If that was the case then I would expect this since we moved the location of the classes.zip in the PR which @JonDouglas mentioned. Can you try a Build from Clean please (delete bin/obj) and then if it is still a problem gist the diagnostic output from the build. You can turn on diagnostic build output in VSForMac by going to the Preferences Menu and then Build and changing the Log Verbosity. |
I just tried the upgrade again (I had rolled back yesterday to be in a working state) and now it's working. I had cleaned before building and it wasn't working, but now it is, so probably just something went wrong with the first install. Thanks for the fast replies! |
Steps to Reproduce
Expected Behavior
The solution builds in release mode.
Actual Behavior
The solution doesn't build in release mode, it gives the following error:
Build log here.
Version Information
=== Visual Studio Community 2017 for Mac ===
Version 7.3.3 (build 7)
Installation UUID: 62cf1ad2-0db0-41e1-ac78-aeb509d79f60
Runtime:
Mono 5.4.1.7 (2017-06/e66d9abbb27) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
=== NuGet ===
Version: 4.3.1.4445
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.0.0
1.1.1
1.0.4
SDK: /usr/local/share/dotnet/sdk/2.0.0/Sdks
SDK Versions:
2.0.0
1.0.3
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.6.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Xamarin.Android ===
Version: 8.1.5.0 (Visual Studio Community)
Android SDK: /android/sdk
Supported Android versions:
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 27.0.1
SDK Build Tools Version: 27.0.3
Java SDK: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Apple Developer Tools ===
Xcode 9.2 (13772)
Build 9C40b
=== Xamarin.iOS ===
Version: 11.6.1.4 (Visual Studio Community)
Hash: db807ec9
Branch: xcode9.2
Build date: 2018-01-10 16:45:48-0500
=== Xamarin Inspector ===
Version: 1.4.0
Hash: b3f92f9
Branch: master
Build date: Fri, 19 Jan 2018 22:00:34 GMT
Client compatibility: 1
=== Xamarin.Mac ===
Version: 4.0.0.216 (Visual Studio Community)
=== Build Information ===
Release ID: 703030007
Git revision: 125911fb4accc4309b2cee5c81c970c7cff9b0e0
Build date: 2018-01-22 17:46:46-05
Xamarin addins: 463e21a6d9d4f6b57f923df376fff093a1dd9404
Build lane: monodevelop-lion-d15-5
=== Operating System ===
Mac OS X 10.13.2
Darwin 17.3.0 Darwin Kernel Version 17.3.0
Thu Nov 9 18:09:22 PST 2017
root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64
=== Enabled user installed addins ===
Internet of Things (IoT) development (Preview) 7.1
Log File
https://gist.github.com/justintoth/1072e75924307758e7c7529ca962e642
The text was updated successfully, but these errors were encountered: