This is a migrated thread and some comments may be shown as answers.

"java.exe" exited with code 1

3 Answers 413 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
JM
Top achievements
Rank 1
JM asked on 15 Sep 2017, 07:52 AM

Hi,

 

We are trying now Telerik for Xamarin and we have a build issue:

First, we met the "java.exe" exited with code 2.

Then we activated Multi-Dex, and now we have: "java.exe" exited with code 1.

We are stuck...

 

3 Answers, 1 is accepted

Sort by
0
JM
Top achievements
Rank 1
answered on 15 Sep 2017, 07:57 AM

Microsoft Visual Studio Community 2017 
Version 15.3.4
VisualStudio.15.Release/15.3.4+26730.15
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Community

Visual Basic 2017   00369-60000-00001-AA087
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA087
Microsoft Visual C# 2017

Visual F# 4.1   00369-60000-00001-AA087
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.8.00712.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30726.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

ASP.NET Template Engine 2017   15.0.30726.0
ASP.NET Template Engine 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50601.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30728.0
Azure App Service Tools v3.0.0

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio   2.3.2.32
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

GorillaPlayerPackage Extension   1.0
GorillaPlayerPackage Visual Studio Extension Detailed Info

JavaScript Language Service   2.0
JavaScript Language Service

JetBrains ReSharper Ultimate 2017.2    Build 109.0.20170824.131346
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Continuous Delivery Tools for Visual Studio   0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Mono Debugging for Visual Studio   4.6.8-pre (ec7034f)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   4.3.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   15.1.61707.200
Microsoft SQL Server Data Tools

Telerik Xamarin VSExtensions   2017.3.908.0
Progress® Telerik® UI for Xamarin Visual Studio extensions

TypeScript   2.3.4.0
TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Xamarin   4.6.3.4 (0841c2aaf)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.4.3.1 (18558b4)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.12.3.3 (8a39106)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

 

 

3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-multidex.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [formsviewgroup.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [Common.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [Data.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [Input.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [List.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [Primitives.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [Websockets.DroidBridge.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [__reference__androidasync-2.1.6.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
3>CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1973,3): error MSB6006: "java.exe" exited with code 1.

0
JM
Top achievements
Rank 1
answered on 15 Sep 2017, 08:36 AM

I enabled detailed build output and it fails, wether I enable multi-dex or not:

 C:\Program Files (x86)\Java\jdk1.8.0_112\\bin\java.exe -Xmx2g -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\26.0.1\\lib\dx.jar" --no-strict --dex --output=obj\Debug\android\bin obj\Debug\android\bin\classes "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar" obj\Debug\__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar obj\Debug\__library_projects__\Lottie\library_project_imports\bin\classes.jar obj\Debug\__library_projects__\Telerik.Xamarin.Android.Common\library_project_imports\bin\Common.jar obj\Debug\__library_projects__\Telerik.Xamarin.Android.Data\library_project_imports\bin\Data.jar obj\Debug\__library_projects__\Telerik.Xamarin.Android.Input\library_project_imports\bin\Input.jar obj\Debug\__library_projects__\Telerik.Xamarin.Android.List\library_project_imports\bin\List.jar obj\Debug\__library_projects__\Telerik.Xamarin.Android.Primitives\library_project_imports\bin\Primitives.jar obj\Debug\__library_projects__\Websockets.Droid\library_project_imports\Websockets.DroidBridge.jar obj\Debug\__library_projects__\Websockets.Droid\library_project_imports\__reference__androidasync-2.1.6.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Animated.Vector.Drawable\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Compat\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Core.UI\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Core.Utils\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Fragment\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Media.Compat\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Transition\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.v4\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.v7.CardView\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.v7.Palette\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.Android.Support.Vector.Drawable\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.GooglePlayServices.Base\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.GooglePlayServices.Basement\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.GooglePlayServices.Maps\library_project_imports\classes.jar obj\Debug\__library_projects__\Xamarin.GooglePlayServices.Tasks\library_project_imports\classes.jar 
1: Error C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets (1973,3) MSB6006: "java.exe" exited with code 1.

0
JM
Top achievements
Rank 1
answered on 15 Sep 2017, 08:41 AM

Ok I just found out what happened...

I set Java Heap memory to 2G, which is an invalid value...

Sorry for the mess x)

Tags
General Discussions
Asked by
JM
Top achievements
Rank 1
Answers by
JM
Top achievements
Rank 1
Share this question
or