0 votes

I am trying to build an APK using a custom package and run it on a real device. I make no changes to Godot's source and building the packages on a fresh git clone.
These are the commands I am using:

scons platform=android target=release android_arch=armv7
scons platform=android target=release android_arch=arm64v8
scons platform=android target=release android_arch=x86
cd platform/android/java
# On Windows
.\gradlew generateGodotTemplates

When running with the built-in package everything works fine.

When running with the custom packages I am getting:

--------- beginning of crash
12-10 08:44:48.047  3344  3344 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3344 (init), pid 3344 (init)
12-10 08:44:48.082  3344  3344 F libc    : crash_dump helper failed to exec
12-10 08:44:51.613  3505  3505 E AndroidRuntime: FATAL EXCEPTION: main
12-10 08:44:51.613  3505  3505 E AndroidRuntime: Process: com.moodle.moodlemobile, PID: 3505
12-10 08:44:51.613  3505  3505 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider de.appplant.cordova.plugin.notification.util.AssetProvider: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.app.ActivityThread.installProvider(ActivityThread.java:7290)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6764)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.app.ActivityThread.handleInstallProvider(ActivityThread.java:3747)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:107)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:214)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7682)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
12-10 08:44:51.613  3505  3505 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:604)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:578)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.support.v4.content.FileProvider.attachInfo(FileProvider.java:391)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    at android.app.ActivityThread.installProvider(ActivityThread.java:7279)
12-10 08:44:51.613  3505  3505 E AndroidRuntime:    ... 9 more
12-10 08:46:29.459  4054  4054 E AndroidRuntime: FATAL EXCEPTION: main
12-10 08:46:29.459  4054  4054 E AndroidRuntime: Process: 
in Engine by (50 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.