Jump to content
MikeMon

Delphi 10.3.2 Android Application is Not Starting

Recommended Posts

Hi

 

After upgrading to Delphi 10.3.2, any Android app, including a blank app, is not running successfully on any Android device. I'm getting the following exception:

  "Unfortunately, Project1 has stopped."

 

I'm using:

- Android SDK 25.2.5 32bit, build-tools\29.0.2, platforms\android-29

- Android NDK r17b, platforms\android-28

 

Please, advise

Share this post


Link to post

Hi Dave

 

Thank you for your help. After winding back my build tools to 28.0.3, a blank app is now running OK. 

 

However, my existing app is still not running. I've attached the logcat log file. The app package name is cy.com.wagamama.ordercy.

 

I can't pinpoint where the problem is exactly.

log.txt

Share this post


Link to post

Thanks for the log! You may need to revise your NDK settings too, given it solved this persons problem:

 

https://community.idera.com/developer-tools/platforms/f/android-platform/67751/10-3-android-5-crash

 

I have mine set at Android-22. The relevant part in your log is:

 

08-31 13:08:02.182: E/AndroidRuntime(1527): java.lang.RuntimeException: Unable to start activity ComponentInfo{cy.com.wagamama.ordercy/com.embarcadero.firemonkey.FMXNativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/app/cy.com.wagamama.ordercy-2/lib/arm/libWagaAppClient.so
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3151)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3261)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.ActivityThread.access$1000(ActivityThread.java:219)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1735)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.os.Handler.dispatchMessage(Handler.java:102)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.os.Looper.loop(Looper.java:145)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.ActivityThread.main(ActivityThread.java:6939)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at java.lang.reflect.Method.invoke(Native Method)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at java.lang.reflect.Method.invoke(Method.java:372)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
08-31 13:08:02.182: E/AndroidRuntime(1527): Caused by: java.lang.IllegalArgumentException: Unable to load native library: /data/app/cy.com.wagamama.ordercy-2/lib/arm/libWagaAppClient.so
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.NativeActivity.onCreate(NativeActivity.java:182)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at com.embarcadero.firemonkey.FMXNativeActivity.onCreate(FMXNativeActivity.java:105)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.Activity.performCreate(Activity.java:6609)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
08-31 13:08:02.182: E/AndroidRuntime(1527): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3104)

 

  • Like 1

Share this post


Link to post

Hi Dave

 

Thank you for your answer.

 

I've revised both my SDK and NDK settings to the working settings I had on 10.3.1, i.e. SDK build tools 28.0.3, platform android-28 and NDK platform android-22. It still wasn't running. I unchecked the "Receive Push Notifications" in the "Entitlement List" and it started running fine. After that I used the SDK build tools to 29.0.2 and the SDK platform to android-29 and it worked fine as well.

 

Thank you Dave once again for your valuable input.

  • Like 1

Share this post


Link to post

MikeMon,

 

You need to import your google-services.gson by going to Project Options -> Application -> Services.

 

 

Sincerely,

 

Zach

Share this post


Link to post

MikeMon,

 

I should clarify. There are actually a couple of things that need to be fixed. First is the above mentioned google-services.gson needing to be imported. You will also need to go into the project icons and set your notification icons. Last thing, you need to uncheck the accent color and click [Ok] to save everything. Remember it isn't fully saved until you save the project. After you have saved it I believe you can add the accent color back.

 

Sincerely,

 

Zach

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×