Resource cannot be null

Hey,
I try to make a build APK Android, but i have an error :

image

I have create bundle with bob.jar, but i don’t understand what’s the error. :expressionless:

java -jar bob.jar --platform=armv7-android --archive --verbose --bundle-format=apk --keystore=keyDR0P.keystore --keystore-pass=passwordKeyDR0P.txt --keystore-alias=key_dr0p
Bob: Initialising resource cache with local cache dir 'null' and remote 'null'
Working...Build Remote Engine...
Building engine...Exception in thread "main" com.dynamo.bob.CompileExceptionError: resource cannot be null.
        at com.dynamo.bob.Project.build(Project.java:594)
        at com.dynamo.bob.Bob.mainInternal(Bob.java:708)
        at com.dynamo.bob.Bob.main(Bob.java:757)
Caused by: java.lang.IllegalArgumentException: resource cannot be null.
        at com.dynamo.bob.MultipleCompileException.addIssue(MultipleCompileException.java:67)
        at com.dynamo.bob.bundle.BundleHelper.buildEngineRemote(BundleHelper.java:1133)
        at com.dynamo.bob.Project.buildEngine(Project.java:861)
        at com.dynamo.bob.Project.doBuild(Project.java:1076)
        at com.dynamo.bob.Project.build(Project.java:584)
        ... 2 more

I have as dependencies :

https://github.com/dapetcu21/defold-fmod/archive/v2.4.6.zip

Someone has an idea ?

Thanks for advance.

1 Like

I’m wondering if it’s the error reporting that is a bit wrong.

If you could check your “log.txt” in your projects’ build folder, and post it here?
It should contain any build errors from the remote engine build.

1 Like

Ok, this is the “log.txt” of armv7-android

image

aapt2 compile /tmp/job8640356263944906558/upload/packages/com.defold.android/res/drawable-mdpi/icon.png -o /tmp/job8640356263944906558/build/compiledResources/com.defold.android

aapt2 compile /tmp/job8640356263944906558/upload/packages/com.defold.android/res/drawable-ldpi/icon.png -o /tmp/job8640356263944906558/build/compiledResources/com.defold.android

aapt2 compile /tmp/job8640356263944906558/upload/packages/com.defold.android/res/drawable-hdpi/icon.png -o /tmp/job8640356263944906558/build/compiledResources/com.defold.android

aapt2 compile /tmp/job8640356263944906558/upload/packages/com.defold.android/res/drawable-xhdpi/icon.png -o /tmp/job8640356263944906558/build/compiledResources/com.defold.android

aapt2 compile /tmp/job8640356263944906558/upload/packages/com.defold.android/res/drawable-xxhdpi/icon.png -o /tmp/job8640356263944906558/build/compiledResources/com.defold.android

aapt2 compile /tmp/job8640356263944906558/upload/packages/com.defold.android/res/drawable-xxxhdpi/icon.png -o /tmp/job8640356263944906558/build/compiledResources/com.defold.android

aapt2 link  --proto-format --non-final-ids --auto-add-overlay --manifest /tmp/job8640356263944906558/build/AndroidManifest.xml -I /var/extender/sdk/d31d6397a72178541a5ef6e7ef2bed090d828f58/defoldsdk//ext/share/java/android.jar --java /tmp/job8640356263944906558/build/out_java -o /tmp/job8640356263944906558/build/compiledresources.apk --emit-ids /tmp/job8640356263944906558/build/resource_ids.txt -R @/tmp/job8640356263944906558/build/compiledresources.txt
/tmp/job8640356263944906558/build/AndroidManifest.xml:12: error: resource mipmap/ic_launcher (aka com.drop.todo:mipmap/ic_launcher) not found.
error: failed processing manifest.

It seems logical to me, because I changed my mobile icon.

I need modified the file AndroidManifest.xml.

2 Likes

Ok, i have found the problem.
It is because I added a file in the reserve which disturbs the creation of the build.

image

Thanks for your fast response. :slight_smile:

1 Like