Recent

Author Topic: LAMW - "This app has a bug" Android 12 error  (Read 5920 times)

Agmcz

  • New Member
  • *
  • Posts: 46
LAMW - "This app has a bug" Android 12 error
« on: May 09, 2022, 11:39:37 pm »
Hello

There is a fatal error with Samsung devices and Android 12!!!

The error message is just "Something went wrong with [App]. [App] closed because this app has a bug. Try updating this app after its developer provides a fix for this error.", and then the app fails to start.

Tested on Samsung Note 10 and Samsung S9 Plus, Android 12

Lazarus
Apk builder: gradle
Chipset: Aarch64
SDK version: 31

Please fix bug
« Last Edit: May 10, 2022, 12:24:04 am by Agmcz »

Agmcz

  • New Member
  • *
  • Posts: 46
Re: LAMW - "This app has a bug" Android 12 error
« Reply #1 on: May 12, 2022, 12:20:02 am »
Does this mean that there is no solution to the problem?  :(

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW - "This app has a bug" Android 12 error
« Reply #2 on: May 12, 2022, 01:57:51 am »
Quote
Does this mean that there is no solution to the problem?

No!


But a generic error message doesn't help....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

ADiV

  • Jr. Member
  • **
  • Posts: 90
    • ADiV Software
Re: LAMW - "This app has a bug" Android 12 error
« Reply #3 on: May 12, 2022, 09:55:41 am »
Hello

There is a fatal error with Samsung devices and Android 12!!!

The error message is just "Something went wrong with [App]. [App] closed because this app has a bug. Try updating this app after its developer provides a fix for this error.", and then the app fails to start.

Tested on Samsung Note 10 and Samsung S9 Plus, Android 12

Lazarus
Apk builder: gradle
Chipset: Aarch64
SDK version: 31

Please fix bug

Try SDK version: 30 LAMW is not yet ready for SDK 31

Agmcz

  • New Member
  • *
  • Posts: 46
Re: LAMW - "This app has a bug" Android 12 error
« Reply #4 on: May 12, 2022, 03:40:02 pm »
Thanks to reply

Quote
No!
But a generic error message doesn't help....
Error msg appears when startup app, how debugging?
Quote
Try SDK version: 30 LAMW is not yet ready for SDK 31
SDK version 30 also same problem!!

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW - "This app has a bug" Android 12 error
« Reply #5 on: May 12, 2022, 05:50:00 pm »
Quote
Error msg appears when startup app, how debugging?

Please,  look for "android adb command line" ...

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - "This app has a bug" Android 12 error
« Reply #6 on: May 16, 2022, 01:58:26 am »
Problem not yet appear  :D, 80% my project are using sdk 31 + gradle 7.1.3 -> android studio chipmunk for building.
« Last Edit: May 16, 2022, 02:00:33 am by Mongkey »

Agmcz

  • New Member
  • *
  • Posts: 46
Re: LAMW - "This app has a bug" Android 12 error
« Reply #7 on: May 16, 2022, 06:15:40 pm »
Have you tested app on your samsung note 10/s9 plus with Android 12?  :o

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - "This app has a bug" Android 12 error
« Reply #8 on: May 17, 2022, 01:12:23 am »
s20 plus -> inventory + pos -> ok -> no problem
« Last Edit: May 17, 2022, 01:45:43 am by Mongkey »

Agmcz

  • New Member
  • *
  • Posts: 46
Re: LAMW - "This app has a bug" Android 12 error
« Reply #9 on: May 17, 2022, 02:42:56 pm »
s20 plus -> inventory + pos -> ok -> no problem
Very cool  :'(

I use Android Studio SDK.
Can you put path to gradle for Android Studio...  :o
and jdk version

My settings are attached
« Last Edit: May 17, 2022, 02:46:50 pm by Agmcz »

Agmcz

  • New Member
  • *
  • Posts: 46
Re: LAMW - "This app has a bug" Android 12 error
« Reply #10 on: May 18, 2022, 01:09:25 am »
I found gradle path here "C:\Users\user123\.gradle\wrapper\dists\gradle-7.3.3-bin"
I will test and come back...  8)

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - "This app has a bug" Android 12 error
« Reply #11 on: May 18, 2022, 01:50:42 pm »
Try ndk 21, gradle >7 not yet supported for building inside lazarus, you must build your project using android studio. That is the easiest to get ride sdk31 + gradle >7, but anyway that are my journey to LAMW, if you get more easy to get ride you are awesome  8)
« Last Edit: May 18, 2022, 01:59:34 pm by Mongkey »

Agmcz

  • New Member
  • *
  • Posts: 46
Re: LAMW - "This app has a bug" Android 12 error
« Reply #12 on: May 18, 2022, 10:32:34 pm »
I used Android Studio SDK
gradle 7.3.3
ndk-r21e
there is still the same problem :o


I found this solution but it didn't work for me
https://stackoverflow.com/questions/71410279/app-is-not-working-and-shuts-down-on-samsung-galaxy-s22

neuro

  • Jr. Member
  • **
  • Posts: 62
Re: LAMW - "This app has a bug" Android 12 error
« Reply #13 on: June 15, 2022, 03:04:59 pm »
I also confirm that LAMW apps crash on Android 12.
In Google Play I have a number of apps which were made using LAMW. When Android 12 was released, the crash statistics in Google Play shows that all my apps which were made using LAMW are crashing on Android 12. Unfortunately I do not have physical device running Android 12, so I am unable to find the reason of crash. In Android 12 emulator apps run fine, however apps crash on physical devices running Android 12.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW - "This app has a bug" Android 12 error
« Reply #14 on: June 15, 2022, 07:30:14 pm »
Quote
however apps crash on physical devices running Android 12.....


Please, update LAMW from github and run "Clean up and Build"  before make your apk again....
I think that this issue was fixed by @ADiV


Thanks to All!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018