|
Post by jacecen on Aug 8, 2024 23:24:24 GMT
When I try to make an android build of my application with the configuration you recommended (Api: 30, Ndk: 24, Java 11) on my Windows 10 computer, I always get an error when generating the coreapi extension. I attach a file with the compilation output Attachments:out.txt (454.13 KB)
|
|
|
Post by Dmitriy Zhigulskiy on Aug 12, 2024 0:56:45 GMT
Hi, jacecen "Set up build API Level: 33, version: 13.0"
Most likely you are building an application for android 13 (sdk 33), right? There is no support for android sdk 33 in ndk 24. Install ndk 25 (for example, 25.0.8775105) and use it to build the application
|
|
|
Post by jacecen on Aug 27, 2024 6:25:15 GMT
Hi Dmitriy Following your instructions, I have managed to compile the program, but at the beginning of the compilation process I get a java error that can be seen in the output I sent you. Despite this error, the compilation ends without any further problems, but when running the program on an Android device, I get the error that you can see in the screenshot that I also attached. Attachments:compileout.rar (62.48 KB)
|
|
|
Post by jacecen on Sept 4, 2024 11:51:55 GMT
I'm now trying to build with the following configuration: - Rhomobile 7.6.7 - Java JDK 18.0.2.1 - Android SDK 33 (Android 13) - Android NDK 25.2.9519653 but I keep getting errors. Specifically, at the beginning of the build, I get an error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema running config:android:app_config Later, I get the error: Error in C:\Proyectos\RepartosAhemboV7\RhoRepartos\bin\target\android\release\extensions\bluetooth\bluetooth.jar:com/rho/bluetoothconnection/BluetoothConnection.class: com.android.tools.r8.internal.Ac: Unsupported class file version: 62 running d8.bat I've tried almost everything, but I'm at a dead end and I'd appreciate it if you could help me solve it. Attached is a zip file with the output of the build, the build.yml and androidmanifest.erb. Thank you very much in advance Attachments:Files.zip (557.92 KB)
|
|
|
Post by Alex Epifanov on Sept 4, 2024 11:58:17 GMT
You are using latest version. Try installing build-tools v34 and target SDK version 34. You can also try master if that won't work. We had this issue but it looks it was worked around by using setup for platrorm v34. Also we offer any kind of support/consulting/development services and we ensure any issue get resolved in a quickest manner for our customers.
|
|
|
Post by jacecen on Sept 6, 2024 10:57:13 GMT
Thank you very much for your post.
Following your advice, I have managed to eliminate the second error that aborted the build and now the build ends, but without having eliminated the first java error.
The problem is that the application continues without being able to install in modern versions of Android (I have tried 12 and 13) and it installs in the old ones (5.1) but gives an error when running it.
If you give me an email address I could send you the apk so you can check this problem.
|
|
|
Post by Alex Epifanov on Sept 6, 2024 11:04:02 GMT
Thank you very much for your post. Following your advice, I have managed to eliminate the second error that aborted the build and now the build ends, but without having eliminated the first java error. The problem is that the application continues without being able to install in modern versions of Android (I have tried 12 and 13) and it installs in the old ones (5.1) but gives an error when running it. If you give me an email address I could send you the apk so you can check this problem. please send the apk to aepifanov@tau-platform.com, we'll check it. It's better to upload file to some hosting and send the link because email can cut off binary files. Also attach your build.yml file.
|
|
|
Post by jacecen on Sept 6, 2024 15:35:29 GMT
I just sent you the files along with the androidmanifest
|
|
|
Post by Alex Epifanov on Sept 9, 2024 15:52:24 GMT
Your link says that transfer was expired, can you reupload it? Google drive would work best.
|
|
|
Post by jacecen on Sept 9, 2024 16:41:11 GMT
Forwarded
|
|
|
Post by Alex Epifanov on Sept 9, 2024 16:56:46 GMT
Received. Tried to install your APK with ADB, got output: "Performing Streamed Install adb: failed to install .\RhoRepartos_signed.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1262726319.tmp/base.apk (at Binary XML file line #29): com.rhomobile.rhodes.RhodesActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]" So make sure you have 'exported' flag set for Rhodes activity. As you use customized manifest, you can refer to default one - you can generate a new app to check it and compare, or see it here: github.com/rhomobile/rhodes/blob/master/res/generators/templates/application/AndroidManifest.erbYou may need to update some other settings as well.
|
|
|
Post by jacecen on Sept 9, 2024 20:07:10 GMT
Hi Alex. The AndroidManifest file I used is the default file for 5.x versions and I haven't modified it since I started developing with RhoMobile. Replacing the file with the one you recommend, the build doesn't finish, giving me an error: C:/Projects/RepartosAhemboV7/RhoRepartos/bin/tmp/AndroidManifest.xml:55: error: resource xml/provider_paths (aka com.psionix.rhorepartos:xml/provider_paths) not found. error: failed processing manifest. I attach the output file along with the build.yml RhoRepartos.rar (41.05 KB)
|
|
|
Post by Alex Epifanov on Sept 9, 2024 20:36:07 GMT
Yes, some things might need to be upgraded. Just generate a new app and merge/add missing things. Apart from manifest data there might be some files in ./res folder you need to add to your app.
|
|
|
Post by jacecen on Sept 9, 2024 23:04:53 GMT
Once the missing files were added to the project, the build finished correctly, but unfortunately, the generated application still does not work. I am attaching the error screen of the apk startup as well as the output of the build and the link to the apk via private email. compile.out.rar (70.98 KB)
|
|
|
Post by Alex Epifanov on Sept 9, 2024 23:11:22 GMT
I can see a native crash in the logs. Probably related to SDK/NDK config. Can you run build with --trace option and attach build output.
|
|