AI2OFFLINE custom package name

Hello there, i used http://ai2.appinventor.mit.edu/ to made a project, when i dowload the apk, works totally fine in my mobile but when i use AI2OFFLINE and change apk package name to com.name.name and i dowload the apk then when i install it in the mobile, crushes when i open the app. Please help?

UPDATE when i load an aia project from the original site to AI2OFFLINE and a build and apk then the apk doesn't work in mobile. just crushes all the time.

The packageName with AI2 (online version) is:
appinventor.ai_<email>.<projectName>
In my case e.g.:
appinventor.ai_bodymindpower.Relax

The packageName with AI2Offline is:
com.<email>.<projectName>
In my case e.g.:
com.bodymindpower.Relax

Note: → AboutScreen
AboutScreen must be empty on all screens and must not be used with blocks either, as AI2Offline has removed this property.

1 Like

I make a build in AI2OFFLINE, i download the apk and i try to install it in my phone. But when i go to open it, crushes. All about screens are empty and i dont know what to do.

  1. Export the aia from AI2Offline and import it with AI2 (online). Build the APK, install it and try ...
    Does it crash?
  2. Show the Screen1.Initialize event block.

Okay i did this but in the AI2OFFLINE, i custom the package name and when i loaded in the AI2ONLINE the aia file it changed again the name of package to the appinventor.ai etc

If you wish post your aia here, I just tested a simple project, compiled with AI2OFFLINE, installed it and no crash. Also why are you saving components in tinyDB ?

I checked your aia with AI2Offline.

  1. As I said before, AboutScreen must be empty in all screens.
  2. There seems to be an issue with Firebase:
Error - logcat
12-12 11:06:32.682 22934 22934 E AndroidRuntime: FATAL EXCEPTION: main
12-12 11:06:32.682 22934 22934 E AndroidRuntime: Process: com.bodymindpower.panic3, PID: 22934
12-12 11:06:32.682 22934 22934 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bodymindpower.panic3/com.bodymindpower.panic3.Screen1}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3116)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3259)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1950)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7073)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.google.appinventor.components.runtime.FirebaseDB.FirebaseURL(FirebaseDB.java:285)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.expr.PrimProcedure.apply(PrimProcedure.java:285)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.mapping.CallContext.runUntilValue(CallContext.java:298)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.expr.GenericProc.applyN(GenericProc.java:120)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.kawa.reflect.Invoke.applyN(Invoke.java:193)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.mapping.ProcedureN.apply3(ProcedureN.java:48)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.google.youngandroid.runtime.$PcSetAndCoerceProperty$Ex(runtime8048661786083042661.scm:1364)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.google.youngandroid.runtime.setAndCoerceProperty$Ex(runtime8048661786083042661.scm:197)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.bodymindpower.panic3.Screen1.lambda55(Screen1.yail:311)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.bodymindpower.panic3.Screen1$frame.apply0(Screen1.yail:9)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.expr.ModuleBody.applyN(ModuleBody.java:226)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.expr.ModuleMethod.applyN(ModuleMethod.java:216)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:139)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at gnu.mapping.ProcedureN.apply1(ProcedureN.java:31)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.bodymindpower.panic3.Screen1.$define(Screen1.yail:10274)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:399)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.google.appinventor.components.runtime.Form.onCreate(Form.java:344)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at com.bodymindpower.panic3.Screen1.onCreate(Screen1.yail:10005)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7327)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7318)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3096)
12-12 11:06:32.682 22934 22934 E AndroidRuntime: 	... 11 more
12-12 11:06:32.684  3937 12399 D Debug   : !@DumpState : SHIP
12-12 11:06:32.684  3937 12399 D Debug   : !@DumpState : debug level:0x4f4c
12-12 11:06:32.684  3937 12399 D Debug   : !@Dumpstate : Finally, system will skip dumpstate
12-12 11:06:32.685 23314  5034 W Monkey  : // CRASH: com.bodymindpower.panic3 (pid 22934)
12-12 11:06:32.685 23314  5034 W Monkey  : // Short Msg: java.lang.NullPointerException
12-12 11:06:32.686 23314  5034 W Monkey  : // Long Msg: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
12-12 11:06:32.686 23314  5034 W Monkey  : // Build Label: samsung/greatltexx/greatlte:9/PPR1.180610.011/N950FXXSGDUG6:user/release-keys
12-12 11:06:32.686 23314  5034 W Monkey  : // Build Changelist: N950FXXSGDUG6
12-12 11:06:32.687 23314  5034 W Monkey  : // Build Time: 1626343552000
12-12 11:06:32.687 23314  5034 W Monkey  : // java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bodymindpower.panic3/com.bodymindpower.panic3.Screen1}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3116)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3259)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1950)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.os.Handler.dispatchMessage(Handler.java:106)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.os.Looper.loop(Looper.java:214)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.ActivityThread.main(ActivityThread.java:7073)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at java.lang.reflect.Method.invoke(Native Method)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
12-12 11:06:32.687 23314  5034 W Monkey  : // Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.google.appinventor.components.runtime.FirebaseDB.FirebaseURL(FirebaseDB.java:285)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at java.lang.reflect.Method.invoke(Native Method)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.expr.PrimProcedure.apply(PrimProcedure.java:285)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.mapping.CallContext.runUntilValue(CallContext.java:298)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.expr.GenericProc.applyN(GenericProc.java:120)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.kawa.reflect.Invoke.applyN(Invoke.java:193)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.mapping.ProcedureN.apply3(ProcedureN.java:48)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.google.youngandroid.runtime.$PcSetAndCoerceProperty$Ex(runtime8048661786083042661.scm:1364)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.google.youngandroid.runtime.setAndCoerceProperty$Ex(runtime8048661786083042661.scm:197)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.bodymindpower.panic3.Screen1.lambda55(Screen1.yail:311)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.bodymindpower.panic3.Screen1$frame.apply0(Screen1.yail:9)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.expr.ModuleBody.applyN(ModuleBody.java:226)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.expr.ModuleMethod.applyN(ModuleMethod.java:216)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:139)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at gnu.mapping.ProcedureN.apply1(ProcedureN.java:31)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.bodymindpower.panic3.Screen1.$define(Screen1.yail:10274)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:399)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.google.appinventor.components.runtime.Form.onCreate(Form.java:344)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at com.bodymindpower.panic3.Screen1.onCreate(Screen1.yail:10005)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.Activity.performCreate(Activity.java:7327)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.Activity.performCreate(Activity.java:7318)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3096)
12-12 11:06:32.687 23314  5034 W Monkey  : // 	... 11 more

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.