Cannot start "jarsigner.exe" process in Windows - java

I am generating a release Android app bundle in Android Studio, but I am getting the following error:
java.lang.RuntimeException: Cannot start "jarsigner.exe" process, please add it to the PATH
I have installed Java JDK and JRE and I am using Windows. Please see the error details in the screenshot:

Upgrade the gradle project and android-gradle plugin.

Related

Can't download Android Plugin component: android-plugin-resources: Check logs for details

I used to develop android apps using Intellij in the past but ever since i got my new laptop i am completely unable to make any android apps.
At first i had issues with the java version i had installed (17, android seems to be incompatible?) where i was unable to even build or import a project, which i solved by only installing java version 11 (which currently still is the only installed version).
I can build and import projects just fine but whenever i try to launch it on my S8+ running android 9 (same thing when i use android 10 or higher using and avd), it gives me the following error: Can't download Android Plugin component: android-plugin-resources: Check logs for details and it refuses to install on my phone.
I have removed and installed a different android sdk multiple times on my pc (currently i have api 31 installed), but the issue persists. Same thing for projects i worke on in the past, i only imported the project that used to work completely fine in the past, and the error appears.
export logs detail, it indicate this
WARN - oad.AndroidComponentDownloader - Can't download Android Plugin component: android-plugin-resources
java.io.IOException: Failed to download 'https://cache-redirector.jetbrains.com/intellij-dependencies/org/jetbrains/intellij/deps/android/tools/base/android-plugin-resources/27.3.0.0/android-plugin-resources-27.3.0.0.zip':
Unsupported or unrecognized SSL message
so download this zip file and import it in your ide

Android Studio - tools.jar error while trying to build the project

I am trying to run the mlkit demo application from github on my local setup in Android studio , but when i am trying to build i am getting below error
"Cannot determine path to 'tools.jar' library for Android API 26 Platform (C:/Users//AppData/Local/Android/Sdk)"
I have tried installing jdk 8 which has tools.jar and put the java home path to the same jdk path but still error persists
Also when i try for android app bundle i get another issue as gradle plugin should be 3.2 or higher although my gradle plugin is higher than 3.2
Any help is appreciated

Android SDK license issue prevents build of LibGDX project in IntelliJ

After reinstalling Windows 10, I am desperately trying to get my LibGDX project to run in IntelliJ again. It will not build because of an Android SDK license issue.
I reinstalled Android Studio and the Android SDK 27, which I had been using in my project before, but I got the following error message:
A problem occurred configuring project ':android'.
Failed to install the following Android SDK packages as some licences have not been accepted.
platform-tools Android SDK Platform-Tools
patcher;v4 SDK Patch Applier v4
platforms;android-27 Android SDK Platform 27
build-tools;27.0.3 Android SDK Build-Tools 27.0.3
emulator Android Emulator
tools Android SDK Tools
I found the following thread with lots of suggested fixes:
"Failed to install the following Android SDK packages as some licences have not been accepted" error
So I learned that I have to run
%ANDROID_HOME%/tools/bin/sdkmanager --licenses
It did not work at first because the file /users/MYUSERNAME/.android/repositories.cfg was missing. I created an empty file at that path, ran sdkmanager again and accepted all licenses. However, I still get the same error when building my LibGDX project in IntelliJ.
Here is what I have tried to resolve this issue:
Ran sdkmanager --licenses with administrator priviledges
Ran sdkmanager --update instead of --licenses
Installed the Android command line tools and used that sdkmanager batch file instead
Made sure that the %ANDROID_HOME%\licenses folder exists and contains license files
Made sure that there is not another Android SDK installed on my machine that I am not aware of - both ANDROID_HOME and ANDROID_SDK_ROOT (I read that the former is outdated) environment variables point to the same folder that is also configured as Android SDK location in the Android Studio SDK Manager and as an Android SDK home path in my IntelliJ project settings
Selected the JRE that comes with Android Studio as the standard Java runtime environment on my machine (by setting JAVA_HOME to C:\Program Files\Android\Android Studio\jre)
Uninstalled the API 30 SDK that was automatically installed with Android Studio, so I would only have API 27 left
Tried using the API 30 SDK instead of API 27 by configuring it in the android\build.gradle file of my LibGDX project
Uninstalled Android Studio, removed the SDK folder and reinstalled everything
Added yes | sdkmanager --licenses to my gradlew.bat
None of these seemed to help. When I run sdkmanager --licenses again, the response is
All SDK package licenses accepted.
but IntelliJ keeps saying the opposite.
I am out of ideas how to resolve this. Any help would be highly appreciated.
The issue was most likely due to an incompatibility of the outdated Gradle version with some other dependency, possibly the Android SDK. I resolved it by migrating my project to the newest LibGDX version (1.9.11).
My game would not run with the Gradle wrapper configured in gradle/wrapper/gradle-wrapper.properties (version 5.4.1) because I got another error message ("Could not open cp_init remapped class cache"), so I switched to the latest Gradle version, which is locally installed (6.5.1): Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Use Gradle from: Specified location
I also downloaded the Android API from 30 to 29, as that is the version recommended for use with LibGDX 1.9.11. However, I did not have to use the command line tool to accept the licenses anymore.

Android: Errors occured during the build?

I am attempting to run DEXguard on my simple android application.
I have taken the step of adding it's JAR file into the dropins directory in my
Eclipse ADT bundle.
However now whenever I open eclipse I get this error:
Errors occurred during the build.
Errors running builder "Android optimizer and obfuscator (Dexguard) on project 'test'.
com/android/sdklib/util/GrabProcessOutput$IPProcessOutput
Anytime I try to run any project within eclipse this happens.
What can I do to fix this problem?
EDIT: I have already re-installed eclipse and updated my sdk
Such an error is a sign that you're combining the DexGuard plugin with an incompatible version of the Android plugin in Eclipse. You should check the compatible version numbers that are documented in the DexGuard manual. Upgrading both plugins to the latest versions should work.

Error when installing Android ADT on Eclipse

I am trying to install the android ADT for Eclipse from http://developer.android.com/sdk/installing/installing-adt.html
And get the following error:
If it helps, I am running windows 8.1 and using the latest version of Eclipse. Thank you.
from the Icon of your Dialog I see that you are running Eclipse 4.4. Unfortunately, Android ADT doesn't seem to be supported by that version. Check out this thread as well: Google adt/gwt support for eclipse 4.4 (Luna)

Categories