App niotron crash in android 11

After the aia project is built, the app doesn’t open on android 11. Help

Aia: GSheet_DB.aia (388.1 KB)

@Droid_Lab Can you share some screen shots?

1 Like

Does it open on Android < 11?

Post logcat:

1 Like

@iaditya_nanda The app opens and closes immediately, just that as shown in the screenshoot

@anke This is the error log, does it mean the app doesn’t open because of the extension?

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/recyclerview/widget/RecyclerView;
FATAL EXCEPTION: main
Process: com.niotron.editsdroid92.GSheet_DB, PID: 24706
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/recyclerview/widget/RecyclerView;
at java.lang.Class.getDeclaredFields(Native Method)
at gnu.bytecode.ClassType.addFields(ClassType.java:606)
at gnu.bytecode.ClassType.getFields(ClassType.java:506)
at gnu.bytecode.ClassType.hasOuterLink(ClassType.java:260)
at gnu.bytecode.ClassType.getDeclaredMethod(ClassType.java:880)
at gnu.bytecode.ClassType.addMethod(ClassType.java:667)
at gnu.bytecode.ClassType.addMethod(ClassType.java:698)
at gnu.bytecode.ClassType.addMethods(ClassType.java:1009)
at gnu.bytecode.ClassType.getDeclaredMethods(ClassType.java:725)
at gnu.bytecode.ClassType.getMethods(ClassType.java:809)
at gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:106)
at gnu.kawa.reflect.ClassMethods.apply(ClassMethods.java:229)
at gnu.kawa.reflect.Invoke.lookupMethods(Invoke.java:278)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:185)
at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
at com.niotron.editsdroid92.GSheet_DB.Screen1.$define(Screen1.yail:10257)
at com.google.appinventor.components.runtime.Form.a(SourceFile:398)
at com.google.appinventor.components.runtime.Form.onCreate(SourceFile:343)
at com.niotron.editsdroid92.GSheet_DB.Screen1.onCreate(Screen1.yail:10003)
at android.app.Activity.performCreate(Activity.java:7994)
at android.app.Activity.performCreate(Activity.java:7978)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3404)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.ClassNotFoundException: androidx.recyclerview.widget.RecyclerView

Probably an extension that hasn’t been switched to AndroidX libs yet.
List all your used extensions …

I’m using these extensions, on the companion they work normally, but on the apk it crashes

Try to replace the recycler List extension with any other recycler view extension or use Niotron’s inbuilt recycler view component

1 Like

@iaditya_nanda can you conform, is it not working in Niotron?

It’s work fine . Please check block properly

Thankyou. I tried many times. It is working good when list in global variable. When data fetch from google spreadsheet and add to the global variable it’s very laggy / slow .

Show me the block where you add data.