I have a .script in defold project, but this script is not the defold script, just has the same file extension.When I build android bundle,It throw error:
HI @gerrykwok7!
Sorry to hear you have trouble bundling.
I cannot see any thing related to that in our cloud build logs, so I’m guessing it’s something from within bob.jar.
One thing to test is to remove extensions one by one and see which one is creating trouble.
I have a project that was build error in defold 1.2.157 and success in defold 1.2.147, but the project is too large to upload.(53MB zipped).The detail of two version of defold is:
Perhaps make a copy of your folder, remove all the big assets (e.g. keeping only main collection and it’s needed assets)? Make sure it still produces the same error.
Then you can zip it (without the ./build ang .git/ folders) and share here or with any of us privately.
After running bob.jar, (1.2.156) you’ll get an error like this:
Exception in thread "main" com.dynamo.bob.CompileExceptionError: Format specifier '%s'
at com.dynamo.bob.Project.build(Project.java:445)
at com.dynamo.bob.Bob.main(Bob.java:557)
Caused by: java.util.MissingFormatArgumentException: Format specifier '%s'
at java.util.Formatter.format(Formatter.java:2519)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at com.dynamo.bob.pipeline.ExtenderUtil.getPlatformSettingsFromExtensions(ExtenderUtil.java:917)
at com.dynamo.bob.bundle.BundleHelper.generateAndroidResources(BundleHelper.java:416)
at com.dynamo.bob.Project.buildEngine(Project.java:714)
at com.dynamo.bob.Project.doBuild(Project.java:844)
at com.dynamo.bob.Project.build(Project.java:435)
... 1 more
which is very useful.
After fixing that bug I get:
Exception in thread "main" com.dynamo.bob.CompileExceptionError: Extension manifest '/Users/mathiaswesterdahl/work/projects/gerrykwok/extension/luajavaoc/ext.manifest' contains invalid values: java.lang.RuntimeException: Class types differ: 'class java.util.HashMap' != 'class java.util.LinkedHashMap' for values '{flags=[]}' and '{flags=[]}'
at com.dynamo.bob.pipeline.ExtenderUtil.getPlatformSettingsFromExtensions(ExtenderUtil.java:917)
at com.dynamo.bob.bundle.BundleHelper.generateAndroidResources(BundleHelper.java:416)
at com.dynamo.bob.Project.buildEngine(Project.java:714)
at com.dynamo.bob.Project.doBuild(Project.java:844)
at com.dynamo.bob.Project.build(Project.java:435)
at com.dynamo.bob.Bob.main(Bob.java:557)
It seems we have an issue comparing some values in your manifest files.
However, the workaround is to simply remove all the empty lines, and just have: