Vandrovnik 215 Posted March 8, 2022 Hello, I am not able to start 1 Android app of 3 apps since migration to Delphi 11. I did the "Revert system files to default" on Libraries. It fails in FMX.Platform.Android, TPlatformAndroid.Create, on the line Activity.addListener(FActivityListener): Please any ideas what can be wrong / how to repair it? Share this post Link to post
Jasja 3 Posted March 26, 2022 I have also issues with My Android App since migrating to RAD studio 11.1. It all worked with 11.0 but not in 11.1 It seems not all dex.jar files are available. In the locations they need to be. Maybe your app is also missing needed java jar files? Big Issue for me, and don't know how I can fix it. Any help would be appriciated ! -- compile output -- paclient command line [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\android-support-v4.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\android-support-v4.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads-base.17.2.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads-base.17.2.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads-identifier.16.0.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads-identifier.16.0.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads-lite.17.2.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads-lite.17.2.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads.17.2.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-ads.17.2.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-analytics-impl.16.0.8.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-analytics-impl.16.0.8.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-analytics.16.0.8.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-analytics.16.0.8.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-base.16.0.1.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-base.16.0.1.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-basement.16.2.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-basement.16.2.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-gass.17.2.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-gass.17.2.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-identity.16.0.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-identity.16.0.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-maps.16.1.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-maps.16.1.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-measurement-base.16.4.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-measurement-base.16.4.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-measurement-sdk-api.16.4.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-measurement-sdk-api.16.4.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-stats.16.0.1.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-stats.16.0.1.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-tagmanager-v4-impl.16.0.8.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-tagmanager-v4-impl.16.0.8.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-tasks.16.0.1.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-tasks.16.0.1.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-wallet.16.0.1.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-android-gms.play-services-wallet.16.0.1.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-analytics.16.4.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-analytics.16.4.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-common.16.1.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-common.16.1.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-iid-interop.16.0.1.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-iid-interop.16.0.1.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-iid.17.1.1.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-iid.17.1.1.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-measurement-connector.17.0.1.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-measurement-connector.17.0.1.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-messaging.17.5.0.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\com-google-firebase.firebase-messaging.17.5.0.dex.jar [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar: [PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar [PAClient Error] Error: E7688 Compilation failed with an internal error. [PAClient Error] Error: E7688 Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:92) [PAClient Error] Error: E7688 at com.android.tools.r8.D8.main(D8.java:4) [PAClient Error] Error: E7688 Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar [PAClient Error] Error: E7688 at Version.fakeStackEntry(Version_3.0.73.java:0) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:68) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:28) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:27) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.build(BaseCommand.java:2) [PAClient Error] Error: E7688 at com.android.tools.r8.D8.a(D8.java:4) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:84) [PAClient Error] Error: E7688 ... 1 more [PAClient Error] Error: E7688 Caused by: java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar [PAClient Error] Error: E7688 at com.android.tools.r8.utils.c$b.d(SourceFile:16) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.e(BaseCommand.java:3) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.a(BaseCommand.java:12) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.addProgramFiles(BaseCommand.java:3) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.addProgramFiles(BaseCommand.java:1) [PAClient Error] Error: E7688 at com.android.tools.r8.b.a(SourceFile:133) [PAClient Error] Error: E7688 at com.android.tools.r8.b.a(SourceFile:1) [PAClient Error] Error: E7688 at com.android.tools.r8.D8Command.parse(D8Command.java:1) [PAClient Error] Error: E7688 ... 3 more [PAClient Error] Error: E7688 Suppressed: java.lang.RuntimeException: com.android.tools.r8.internal.b: java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar [PAClient Error] Error: E7688 at com.android.tools.r8.internal.UA.a(SourceFile:25) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.a(BaseCommand.java:3) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:24) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.build(BaseCommand.java:2) [PAClient Error] Error: E7688 ... 3 more [PAClient Error] Error: E7688 Caused by: com.android.tools.r8.internal.b: java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar [PAClient Error] Error: E7688 at com.android.tools.r8.internal.UA.a(SourceFile:14) [PAClient Error] Error: E7688 at com.android.tools.r8.internal.UA.error(SourceFile:1) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.c$b.d(SourceFile:17) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.e(BaseCommand.java:3) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.a(BaseCommand.java:12) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.addProgramFiles(BaseCommand.java:3) [PAClient Error] Error: E7688 at com.android.tools.r8.BaseCommand$Builder.addProgramFiles(BaseCommand.java:1) [PAClient Error] Error: E7688 at com.android.tools.r8.b.a(SourceFile:133) [PAClient Error] Error: E7688 at com.android.tools.r8.b.a(SourceFile:1) [PAClient Error] Error: E7688 at com.android.tools.r8.D8Command.parse(D8Command.java:1) [PAClient Error] Error: E7688 ... 3 more [PAClient Error] Error: E7688 [CIRCULAR REFERENCE:java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar] Failed Elapsed time: 00:00:27.4 Share this post Link to post
Jasja 3 Posted March 27, 2022 Fixed it: If you encounter this issue open the project's .dproj file with notepad and search for the <EnabledSysJars> tag. Remove the content between the <EnabledSysJars></EnabledSysJars> tag. and save the file. Building should work now. 2 1 Share this post Link to post
jcwhit 0 Posted July 6, 2022 (edited) Greetings As i commented in RSP-35804, I also had problems converting existing Android Apps. For those who do not have access, here is the text. " I came here from RSP-35919 (Android 12 - Bluetooth LE discover devices - access to location). I was updating a BTLE app from API 23 to API 30 for the Aug 2022 deadline. I started with Delphi 11.1 and had the same issue. The APP would fail during initialization. I backed up to 10.3.3 and API 23 and verified it still worked. Then moved through the API levels one at a time, changing to 10.4.2 when needed, then 11.0 and finally 11.1 and API 30. Made the changes needed at each API level and compiler version. (Note: when the permission types changed in 11.0, I created conditional compiler code so I could easily go back and forth between 10.4.2 and 11.0). It now works. What I changed that allowed it to work on 11.1 and API 30, I am not sure. Tested on Android 7,8,11, and 12. Both 32 and 64bit. Again, I am only doing BTLE device discovery, not location." I have now converted my second App which was a little more complex than the first one. I had similar but different problems. At one point I had the error that started this thread, along with the location error RSP_35804 and a few others. I used the same basic process I describe above. What I am beginning to think is that the issue is a combination of the Android Manifest, library update (as described here) and carefully reviewing the project deployment page. Here is the closest process I have to a conversion checklist. At every API level change, delete both the Android Manifest Template and the Android Manifest. Start fresh. If you manually change this, make sure you save your changes elsewhere so you can update these later. Since I had not updated in a while, I had to start with 10.3.3, you start with where it worked last. Make sure you clean the project before Building. Then go look at the directory and see what is left. You might want to delete whatever is left, unless it is a file that you specifically need to be included. (See the next item and CLASSES.DEX) Carefully review the Project Deployment Options Page (PROJECT->Deployment) in all configurations (32 bit, 64 bit, DEBUG and RELEASE). This is especially true when going to version 11.x. The CLASSES.DEX file moved from the DEBUG/RELEASE directory to a <projectname>.classes sub-directory. Going back and forth between 11.x and 10.4.2 can orphan the CLASSES.DEX and I think this is causing issues. (What I dont like is you cannot delete anything on this page that the IDE inserted. So if you have been carrying this project since 10.0 or before there can be a lot of excess baggage.) When you get to version 11.x, it is imperative that you update the libraries as described in the link above for every project. This is not an IDE global update, but appears to be a project specific update. The better approach may be to start the project fresh when moving to 11.x. I have not done this, so I do not know what fun things this idea can bring. Also Jasja idea did not work for me. Edited July 6, 2022 by jcwhit update Share this post Link to post
Vandrovnik 215 Posted July 22, 2022 On 3/8/2022 at 5:47 PM, Vandrovnik said: Hello, I am not able to start 1 Android app of 3 apps since migration to Delphi 11. I did the "Revert system files to default" on Libraries. I have upgraded to Delphi 11.1. I have deleted folders Android\Debug, Android\Release, Android64\Debug, Android64\Release. Now it works 🙂 1 Share this post Link to post
nickolasdeluca 0 Posted February 28, 2023 On 3/27/2022 at 2:29 PM, Jasja said: Fixed it: If you encounter this issue open the project's .dproj file with notepad and search for the <EnabledSysJars> tag. Remove the content between the <EnabledSysJars></EnabledSysJars> tag. and save the file. Building should work now. Thank you so much for this! I would've never guessed. By the way, how did you find this out? Share this post Link to post