dave
Junior Member
Posts: 10
|
Post by dave on Sept 8, 2023 11:11:47 GMT
Google are about to enforce a minimum Android target version of API 33 for the Play Store.
I am trying to find any info as to if you have a version of Rhodes that supports Android API 33, and if so, what versions of Rhodes, Ruby, Java SDK and Android NDK are recommended / supported?
Thanks
|
|
|
Post by Alex Epifanov on Sept 8, 2023 11:14:08 GMT
Try following config:
Rhodes 7.6.0.dev15 SDK 33, NDK 24.0.8215888, Java 11
|
|
dave
Junior Member
Posts: 10
|
Post by dave on Sept 8, 2023 11:17:59 GMT
Thanks for the reply Alex. What version of Ruby is currently recommended?
|
|
|
Post by Alex Epifanov on Sept 8, 2023 11:22:02 GMT
Ruby 2.7
|
|
dave
Junior Member
Posts: 10
|
Post by dave on Sept 8, 2023 14:55:39 GMT
I tried the above setup (Rhodes 7.6.0.dev15, Android SDK 33, Android NDK 24, Java JDK 11, Ruby 2.7.2) and keep getting build errors.
My build.yml is as follows
sdk: "/Users/devel/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rhodes-7.6.0.dev15" name: "TestApp" version: "1" vendor: "TestCorp" build: "release" applog: "rholog.txt" android: abis: - arm - aarch64 version: 13 targetSDK: 33 production: certificate: <path to cert> password: <password> alias: "com.testcorp.testapp" emulator: "Android33" extensions: - json - openssl.so - openssl - digest - digest-sha2 - mediacapture capabilities: - camera - sdcard
When I run rake clean:android I get the following:
[INFO] Using Rhodes configuration from path: rhobuild.yml [INFO] Starting rhodes build system using ruby version: 2.7.2 [INFO] Installed versions: [INFO] ["10", "13"] [INFO] Found api level 33 [INFO] Set up build API Level: 33, version: 13.0 [INFO] Detected Android build tools at /Users/devel/Library/Android/sdk/build-tools/34.0.0 [INFO] $vendor = testcorp [INFO] $app_package_name = com. testcorp.testapp [INFO] Adding maven dependency for .rho: androidx.core:core:1.6.0 [INFO] Adding maven dependency for .rho: androidx.core:core-ktx:1.6.0 [INFO] Adding maven dependency for .rho: androidx.lifecycle:lifecycle-common:2.3.1 [INFO] Adding maven dependency for .rho: androidx.lifecycle:lifecycle-common-java8:2.3.1 [INFO] Adding maven dependency for .rho: org.conscrypt:conscrypt-android:2.5.1 [INFO] Adding maven dependency for .rho: com.android.ndk.thirdparty:openssl:1.1.1q-beta-1 [INFO] Adding maven dependency for .rho: androidx.localbroadcastmanager:localbroadcastmanager:1.1.0 Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213) at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 5 more
Any help would be appreciated
|
|
|
Post by Alex Epifanov on Sept 8, 2023 15:11:26 GMT
Dave, so you get the error with clean command? This may be a bug, we'll check it. Workaround is by just fully deleting bin folder in your project and then run your build as usual. If you get more errors, please post the output here.
|
|
dave
Junior Member
Posts: 10
|
Post by dave on Sept 8, 2023 16:22:55 GMT
Thanks for the reply
Yes, it was with the clean command
|
|
|
Post by Alex Epifanov on Sept 11, 2023 14:40:34 GMT
|
|
dave
Junior Member
Posts: 10
|
Post by dave on Sept 11, 2023 15:42:50 GMT
Thanks. I will take a look.
I managed to get the app building using the above mentioned combination of ruby, android etc, but the camera plugin does not seem to work as expected.
I get the camera appearing, take the photo, and then just get "User canceled operation." and nothing happens.
Any ideas as to what I may be missing, as this used to work fine when I was targeting an older version of the Android API (29)?
|
|
|
Post by Alex Epifanov on Sept 11, 2023 15:48:38 GMT
Can you get ligs from the app with minSeverity=0 setting? We'll see what's going on with camera. Also what is your device model.
|
|
|
Post by newuser on Sept 19, 2023 9:46:02 GMT
|
|
|
Post by Alex Epifanov on Sept 19, 2023 17:40:51 GMT
NB that when you specify version in build.yml, you may use older platform for build. When not specified, latest installed platform will be used.
|
|