Skip to content

Error: "java.exe" exited with code 1 in Release mode #1369

Description

@dehghani-mehdi

Steps to Reproduce

  1. Open up any Xamarin.Android project
  2. Change Solution Configuration to Release mode
  3. Try to build the solution

Expected Behavior

Successful build.

Actual Behavior

I got this error

"java.exe" exited with code 1.

Version Information

I'm using VS 2017, v 15.6

Xamarin 4.9.0.749
Xamarin Designer 4.10.58
Xamarin.Android SDK 8.2.0.15

I tired following:

  1. Updating Proguard to latest version
  2. Updating JDK (jdk1.8.0_162), but downgraded to 161 again
  3. Set 1G as Java max heap size
  4. And all other solutions that you can find here: https://forums.xamarin.com/discussion/9305/java-exe-exited-with-code-1-xamarin-android-common-targets

I'm using Support library v4 and v7, Picaso, CallygraphyXamarin and JSON.net

In Debug mode I can build and archive the solution without any problem.

Update:
If I disable Proguard , I can get successful build/archive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions