Xamarin error MSB6006: "java.exe" exited with code 1 - java

I am getting this error after updating some NuGets
the project was working well and I have build it on debug and release many hundred times
I try setting Linking to None and Changing Code Shrinker and Dex complier clean the project delete bin and obj and changing java sdk location but everything doesn't work
I always getting
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.DX.targets(32,5
error MSB6006: "java.exe" exited with code 1

after following this
https://learn.microsoft.com/en-us/visualstudio/ide/how-to-view-save-and-configure-build-log-files?view=vs-2019
where I find this
xamarin com.google.android.gms.internal.measurement.zzu is defined multiple times
so I install Xamarin.GooglePlayServices.Ads directly to my project and it builds correctly

Try to add MultiDexApplication class to your android project

Related

Error: module not found: javafx.controls 1 error

So I wanted to restart my project, and deleted all the files I created that were related to this project (using jGrasp for Java). But then when I restarted my project and compiled the file I received the following error.
error: module not found: javafx.controls
1 error
Then I tried it on the old file that I was sure would work, but I got the same error. I was wondering how to fix it (I feel I might have deleted a file that I was not supposed to).
I'm guessing you upgraded Java. JavaFX was removed in Java 11. See https://jgrasp.org/javafx.html for instructions on downloading JavaFX separately and configuring jGRASP to use it.

Build gradle fails even in new apps

I keep getting the same error
"Error:Execution failed for task ':app:mergeDebugResources' no servers to serve "
This happened after I installed glade via choco.
I deleted every folder of android studio(.gradle, sdk, projects, etc) and deleted choco in the %programdata% folder, I reinstalled android studio and keep getting the same error.
It looks like your gradle needs to be updated so that the folder is not private. Sometimes that error is "spat" when your folder with the project, for some reason, becomes unaccessible and you should redirect it via a chmod command in the terminal. That is what I did running Android Studio on Linux when I got the same error you are having.
Typed:
'sudo chmod 777 -R ~/Desktop/folder_project'
Where folder_project is the folder that I used when I put with root my android sdk.
A similar problem with yours, was faced by the person asking this Q: Android Studio - mergeDebugResources exception

Android Studio 1.0 Error

So far I have updated to Android 1.0 and some of my issues where fixed but the Gradle issue is driving me nuts. I have searched everywhere and none of the solutions work for me I use Windows 8.1
When ever I try to run my program:
Pops up
Failed to complete Gradle execution. Cause:
However the virtual Android still runs and the project is not there and this pops up:
19:32:30 Gradle build finished with 1 error(s) in 9 sec
19:37:15 Unexpected Error
Local path doesn't exist.
Local path doesn't exist.
The project may need to be synced with Gradle files.
Sync Project with Gradle files
19:37:15 Session 'app': error
19:38:29 Gradle build finished in 4 sec
19:44:14 Gradle build finished with 1 error(s) in 3 sec
19:45:16 Unexpected Error
Local path doesn't exist.
Local path doesn't exist.
The project may need to be synced with Gradle files.
Sync Project with Gradle files
19:45:16 Session 'app': error
I try to open Android SDK it wont open I tried to solve that as well by editing android.bat running as admin updating java reinstall everything. Nothing works.

eclipse throws AndroidManifest.xml file missing deployment error, though the file exist

I'm using eclipse android IDE (bundle)
a strange thing,
I have build my android application successfully (no errors)
it includes android Apllication project and a native c code project.
I try to run the android project on my android-device
and get this error:
Description Resource Path Location Type
AndroidManifest.xml file missing! WazeAndroid Unknown Android Packaging Problem
Although I see it in the package tree.
I have googled. tried t restart eclipse and my Mac
nothing helped.
Go to Project in menu and do Clean your project which one you selecting then run your program.
Here is a google offical solution
To fix this problem, simply delete the debug.keystore file. The default storage location for AVDs is in ~/.android/avd on OS X and Linux, in C:\Documents and Settings\.android\ on Windows XP, and in C:\Users\.android\ on Windows Vista.
The next time you build, the build tools will regenerate a new keystore and debug key.
I hope that this can help you.

assembleDebug error in Android Studio

I have updated to the latest Android SDK and set JAVA_HOME in .bash_profile using
export JAVA_HOME=$(/usr/libexec/java_home), and I'm getting the following error:
Error Gradle:
FAILURE: Could not determine which tasks to execute.
* What went wrong:
Task 'assembleDebug' not found in project ':CrystalBall'.
* Try:
Run gradle tasks to get a list of available tasks.
Error: Could not execute build using Gradle distribution
http://services.gradle.org/distributions/gradle-1.6-bin.zip
I've attached a screenshot:
What should I do?
The second error in your screenshot seems more important to me. You have to make sure, that the Android Studio is able to download and execute the gradle binary. If you are using a proxy you have to configure it in the Android Studio.
To check the gradle tasks, go to your project folder on the command line and type "gradlew tasks"
You can also configure a proxy for gradle. Just create a gradle.properties file in (your project folder) with these properties:
systemProp.http.proxyHost=www.example.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxy.com|localhost
I don't believe this is the issue the poster had, but for the benefit of others I'll add what I found as I was helping someone on Windows XP who was getting the same error.
It appears the issue in his case was that the path to the Android Studio project had spaces in it (since Windows XP uses the Documents and Settings directory). I had him generate a new project into a directory without spaces in it and it built and ran without problems. Might have actually been something else, but as usual it is best to avoid spaces in paths.

Categories

Resources