App Crashed When Using enhance

I have no Adnetwork in both the apps, Will you be able to take a look into the AIA?

something is wrong in your blocks bc if it works on a fresh app, than it wlll work in each app. Did you use the enhance blocks like in the readme file.?

I tried using No Enhanced Blocks because the sdk i am adding requires no Blocks, it worked well in the blank apk while in my Main APK it crashes, I tried using the Block Too, There is no hope its just crashing and in some devices not even installing

You should show us a aia and the apk

I can DM The AIA and APK, It has some Database Details so i can DM You the AIA File

I also encountered this error

Both has the enhance code block
Not Yet Enhanced
LatestTakubets (4).apk (5.7 MB)

This one is already enhanced
https://drive.google.com/open?id=1kMcLJ0W2EM4rs1q21hRis8OA0EH8bo1L

LatestTakubets.aia (297.2 KB)

I managed to Fix it

1 Like

how sir? i need to fix mine too :frowning:

Is there Onesignal Component in your app?

Are these the only Components?

no one signl

yes thats all

Check For any Component that provide the same feature from Enhance. In my case it was the One Signal Component which was causing the issue. I can Try checking your app with logcat to see more issues

thank you ill check it too

What did you add via Enhance?
Logcat :
02-09 18:12:09.440 13274 13274 E AndroidRuntime: Process: com.unspoken0623.TaKubets.D2.Ka.Mauupo, PID: 13274
02-09 18:12:09.440 13274 13274 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/appinventor/components/runtime/GoogleMap;
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.Class.getDeclaredFields(Native Method)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.addFields(ClassType.java:606)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.getFields(ClassType.java:506)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.hasOuterLink(ClassType.java:260)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.getDeclaredMethod(ClassType.java:880)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.addMethod(ClassType.java:667)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.addMethod(ClassType.java:698)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.addMethods(ClassType.java:1009)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.getDeclaredMethods(ClassType.java:725)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.bytecode.ClassType.getMethods(ClassType.java:809)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:106)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.kawa.reflect.ClassMethods.apply(ClassMethods.java:229)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.kawa.reflect.Invoke.lookupMethods(Invoke.java:278)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.kawa.reflect.Invoke.applyN(Invoke.java:185)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.mapping.ProcedureN.apply3(ProcedureN.java:48)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at com.google.youngandroid.runtime.$PcSetAndCoerceProperty$Ex(runtime2429472681103453677.scm:1181)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at com.google.youngandroid.runtime.setAndCoerceProperty$Ex(runtime2429472681103453677.scm:196)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at io.kodular.unspoken0623.LatestTakubets.Screen1.lambda37(Screen1.yail:22)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at io.kodular.unspoken0623.LatestTakubets.Screen1$frame.apply0(Screen1.yail:19)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at gnu.expr.ModuleMethod.apply0(ModuleMethod.java:186)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at kawa.lang.Promise.force(Promise.java:27)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at kawa.lang.Promise.force(Promise.java:37)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at kawa.lib.misc.force(misc.scm:98)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at io.kodular.unspoken0623.LatestTakubets.Screen1.$define(Screen1.yail:10263)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onCreateFinish2(SourceFile:471)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at com.google.appinventor.components.runtime.Form$1.HandlePermissionResponse(SourceFile:434)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onRequestPermissionsResult(SourceFile:3381)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7630)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.Activity.dispatchActivityResult(Activity.java:7480)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:4489)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.ActivityThread.handleSendResult(ActivityThread.java:4538)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1906)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6863)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: com.google.appinventor.components.runtime.GoogleMap
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.VMClassLoader.findLoadedClass(Native Method)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: … 41 more
02-09 18:12:09.440 13274 13274 E AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/maps/GoogleMap$OnCameraChangeListener;
02-09 18:12:09.440 13274 13274 E AndroidRuntime: … 41 more
02-09 18:12:09.440 13274 13274 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.google.android.gms.maps.GoogleMap$OnCameraChangeListener” on path: DexPathList[[zip file “/system/framework/org.apache.http.legacy.boot.jar”, zip file “/data/app/com.unspoken0623.TaKubets.D2.Ka.Mauupo-RhGv_sqZQU0AtmtD9KLIYA==/base.apk”],nativeLibraryDirectories=[/data/app/com.unspoken0623.TaKubets.D2.Ka.Mauupo-RhGv_sqZQU0AtmtD9KLIYA==/lib/arm64, /system/lib64]]
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:169)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
02-09 18:12:09.440 13274 13274 E AndroidRuntime: … 41 more
02-09 18:12:09.443 559 559 E SELinux : avc: denied { find } for service=opdiagnose pid=13274 uid=10303 scontext=u:r:untrusted_app:s0:c47,c257,c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0
02-09 18:12:09.444 559 559 E SELinux : avc: denied { find } for service=opdiagnose pid=13274 uid=10303 scontext=u:r:untrusted_app:s0:c47,c257,c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0
02-09 18:12:09.445 13274 13274 W OPDiagnose: getService:OPDiagnoseService NULL
02-09 18:12:09.447 13274 13427 D OSTracker: OS Event: crash

i just added the admob banner

![image|193x208](upload://l6z9eJuaoUgXRgSVTj5nMuyyaMO


any updates ?

Here it is @techcvr

Are there any news about enhance and onesignal.
Do you know what was the error and how did you fit it.

My Error was that I Had OneSignal in my application. If you’re using enhance don’t use any component that provides the same Functionality as Enhance

1 Like

So if we use enhance we cannot use push notifications.
Is that right?

You Can use, but Only From enhance