|
Post by egghead on May 25, 2022 9:58:18 GMT
Just thought I'd take 7.5.0 for a test drive. Created a vanilla rhodes app with command : rhodes app tautest
Then tried building with : rake device:android:debug
Got stuck in APK signing :
... [INFO] Packaging Assets and Jars
[INFO] Packaging Native Libs
[INFO] $$$ RUN COMMAND = "C:/Program Files (x86)/Java/jdk1.8.0_51/bin/jar.exe" uf D:/Rhoworkspace/tautest/bin/rhodes.ap_ lib/arm64-v8a/libc++_shared.so lib/arm64-v8a/gdbserver lib/arm64-v8a/libconscrypt_jni.so lib/arm64-v8a/gdbserver lib/arm64-v8a/librhodes.so lib/arm64-v8a/gdbserver lib/armeabi/libc++_shared.so lib/armeabi/gdbserver lib/armeabi/libconscrypt_jni.so lib/armeabi/gdbserver lib/armeabi/librhodes.so lib/armeabi/gdbserver
[INFO] Packaging java resources
[INFO] $$$ RUN COMMAND = "C:/Program Files (x86)/Java/jdk1.8.0_51/bin/jar.exe" uf D:/Rhoworkspace/tautest/bin/rhodes.ap_ org/conscrypt/conscrypt.properties
[INFO] Finish packaging
[INFO] Building APK file...
[INFO] $$$ RUN COMMAND = "C:/Program Files (x86)/Java/jdk1.8.0_51/bin/jar.exe" -uf C:/Users/acer/AppData/Local/Temp/rhodes_apk_build20220525-244-sr7cbr/unaligned.apk -C D:/Rhoworkspace/tautest/bin classes.dex
[INFO] $$$ RUN COMMAND = C:/Users/acer/AppData/Local/Android/Sdk/build-tools/32.1.0-rc1/zipalign.exe -f -v 4 C:/Users/acer/AppData/Local/Temp/rhodes_apk_build20220525-244-sr7cbr/unaligned.apk C:/Users/acer/AppData/Local/Temp/rhodes_apk_build20220525-244-sr7cbr/unsigned.apk
[INFO] Sign Debug APK file
rake aborted!
Can't find debug keystore in user's home folder
Any suggestions/workarounds? Thanks
|
|
|
Post by Alex Epifanov on May 25, 2022 16:55:08 GMT
debug keystore is usually auto generated and located in ~/.android Try running manual commands:
cd $HOME/.android keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000
use empty password and 'androiddebugkey' alias
|
|
|
Post by egghead on May 26, 2022 8:06:22 GMT
debug keystore is usually auto generated and located in ~/.android Try running manual commands: cd $HOME/.android keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000 use empty password and 'androiddebugkey' alias Thank you, Alex. But I couldn't locate any .android folder. Is it supposed to be in the project directory or somewhere else?
|
|
|
Post by Alex Epifanov on May 26, 2022 12:19:39 GMT
it should be in your user's homedir, if you set up Android toolchain ( Studio, or standalone SDK/NDK ). you can just create this dir manually
|
|
|
Post by egghead on May 31, 2022 1:00:06 GMT
it should be in your user's homedir, if you set up Android toolchain ( Studio, or standalone SDK/NDK ). you can just create this dir manually Sorry, Alex if I got this wrong, but even if I create it manually, how will I run the command as it would be an empty directory, right?
|
|
|
Post by Alex Epifanov on May 31, 2022 18:03:15 GMT
You make the directory ( $HOME/.android ), and then generate the keystore there with the command above.
|
|
|
Post by egghead on Jun 3, 2022 7:20:27 GMT
You make the directory ( $HOME/.android ), and then generate the keystore there with the command above. OK, I'm using Android SDK which comes along with Android Studio and is located at C:/Users/acer/AppData/Local/Android/sdk and this path is set in Rhostudio/Rhobuild.yml I also created a .android directory in the project folder. I also notice there's already an .android directory under C:\Users\acer. But in both cases, when I try to run the command, I get : 'keytool' is not recognized as an internal or external command, operable program or batch file.
|
|
|
Post by egghead on Jun 3, 2022 11:05:48 GMT
You make the directory ( $HOME/.android ), and then generate the keystore there with the command above. OK, I'm using Android SDK which comes along with Android Studio and is located at C:/Users/acer/AppData/Local/Android/sdk and this path is set in Rhostudio/Rhobuild.yml I also created a .android directory in the project folder. I also notice there's already an .android directory under C:\Users\acer. But in both cases, when I try to run the command, I get : 'keytool' is not recognized as an internal or external command, operable program or batch file. I also checked my dev PC environment variables. JAVA_HOME is set to C:\Program Files (x86)\Java\jdk1.8.0_51 which also exists. It looks like the path to this is not detected in command. So I supplied the full path to command, it works but not accepting empty password : Enter keystore password: Keystore password is too short - must be at least 6 characters Enter keystore password: Keystore password is too short - must be at least 6 characters Enter keystore password: Keystore password is too short - must be at least 6 characters Too many failures - try later
|
|
|
Post by Alex Epifanov on Jun 3, 2022 11:20:00 GMT
> OK, I'm using Android SDK which comes along with Android Studio and is located at C:/Users/acer/AppData/Local/Android/sdk and this path is set in Rhostudio/Rhobuild.yml Thats' OK.
> I also created a .android directory in the project folder. That's not needed.
> I also notice there's already an .android directory under C:\Users\acer. That's correct path.
> But in both cases, when I try to run the command, I get :'keytool' is not recognized as an internal or external command, operable program or batch file. keytool is part of java toolchain. You need to have java location in your PATH
> I also checked my dev PC environment variables. JAVA_HOME is set to C:\Program Files (x86)\Java\jdk1.8.0_51 which also exists. It looks like the path to this is not detected in command check your PATH
|
|
|
Post by egghead on Jun 3, 2022 11:38:42 GMT
> OK, I'm using Android SDK which comes along with Android Studio and is located at C:/Users/acer/AppData/Local/Android/sdk and this path is set in Rhostudio/Rhobuild.yml Thats' OK. > I also created a .android directory in the project folder. That's not needed. > I also notice there's already an .android directory under C:\Users\acer. That's correct path. > But in both cases, when I try to run the command, I get :'keytool' is not recognized as an internal or external command, operable program or batch file. keytool is part of java toolchain. You need to have java location in your PATH > I also checked my dev PC environment variables. JAVA_HOME is set to C:\Program Files (x86)\Java\jdk1.8.0_51 which also exists. It looks like the path to this is not detected in command check your PATH It does not accept empty keystore password
|
|
|
Post by Alex Epifanov on Jun 3, 2022 13:05:02 GMT
|
|
|
Post by egghead on Jun 6, 2022 5:22:26 GMT
It builds successfully now. Thanks, Alex
|
|