-
Java 8 \ JDK 8 I signed the app using SignApk. The app is not installed on the device, giving the error On the emulator (BlueStacks) the application functions. ~Thanks in advance to whoever can help sort out this problem. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Tough to tell. Normally you'll get the reason printed into the logcat, so you can with |
Beta Was this translation helpful? Give feedback.
I fixed it.
First I installed jdk11, then I created a key using that jdk and keytool I created the key.
./keytool -genkeypair -v -keystore <keystore>.keystore -alias <alias> -keyalg RSA -keysize 2048 -validity 10000
Next, using zipalign from the SDK, I zipped the APK file.
./zipalign -f -v 4 <app>.apk appzip.apk
After that, using apksigner from the same SDK, I signed the app.
./apksigner sign --ks <keystore>.keystore --ks-key-alias <alias> appzip.apk
Now everything works. It took me about 4 days. Most likely the problem was in the JDK version, or in the SDK version. The main thing is that everything works now.