Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bob cannot bundle with certain characters in the project title #8355

Closed
JCash opened this issue Jan 2, 2024 · 8 comments · Fixed by #8660
Closed

Bob cannot bundle with certain characters in the project title #8355

JCash opened this issue Jan 2, 2024 · 8 comments · Fixed by #8660
Labels
bob Issues related to the bob command line build tool bug Something is not working as expected good first issue? The issue might be good for beginners wanting to work on the engine or the editor more info The issue is lacking required information

Comments

@JCash
Copy link
Contributor

JCash commented Jan 2, 2024

As reported here, the bundling step may fail if the title contains certain characters.

From forum post:

If I set project title to “Kỳ Hoàng”, it failed to compile Android bundle, but if I set it to “Ky Hoang”, it compiled successfully.

These lines are in console when it failed:

2024-01-02 12:30:20 INFO exec: C:\Users\chung\AppData\Local\Temp\3013256825095741087\aapt2.exe compile -o C:\Users\chung\AppData\Local\Temp\compiled_resources9302001017514913233\com.chungxa.kyhoang --dir D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\res\com.chungxa.kyhoang
@JCash JCash added bug Something is not working as expected bob Issues related to the bob command line build tool good first issue? The issue might be good for beginners wanting to work on the engine or the editor labels Jan 2, 2024
@baochungit
Copy link

Could someone take this? Thanks!

@britzl
Copy link
Contributor

britzl commented Jan 29, 2024

Could someone take this? Thanks!

It has not been planned yet. I took a quick look and was unable reproduce on macOS. Which OS are you using? Also, is this when running from the editor or from command line using bob.jar?

@britzl britzl added the more info The issue is lacking required information label Jan 29, 2024
@baochungit
Copy link

Thanks for taking your time! I'm using Windows 11 and that was running from editor.

@baochungit
Copy link

I added some images to describle my case
Screenshot 2024-01-30 101107
Screenshot 2024-01-30 101138
Screenshot 2024-01-30 101340

It seems the error message now is different from the one I catched on 1.6.2 but it still failed to build with the project title having unicode characters, for example Kỳ Hoàng.


2024-01-30 10:13:05 INFO Copying resources to D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\aab\base\res

2024-01-30 10:13:05 INFO Copying engine to D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\aab\base\lib\armeabi-v7a\libKHong.so

2024-01-30 10:13:05 INFO Zipping D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\aab\base to D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\aab\base.zip

2024-01-30 10:13:06 INFO Creating Android Application Bundle

2024-01-30 10:13:06 INFO exec: D:\Defold\packages\jdk-17.0.5+8\bin\java -jar C:\Users\chung\AppData\Local\Temp\14482672558673546865\bundletool-all.jar build-bundle --modules D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\aab\base.zip --output D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\Kỳ Hoàng.aab --config D:\Defold\Projects\KyHoang\build\armv7-android\Kỳ Hoàng\aab\BundleConfig.json

ERROR: unspecified:-1: 'com.dynamo.bob.CompileExceptionError: Failed creating Android Application Bundle'

@baochungit
Copy link

Will I wait for build server or Defold Editor updated to have this fixed?

@britzl
Copy link
Contributor

britzl commented Apr 29, 2024

This is a change in bob.jar. It should be available now.

@baochungit
Copy link

Sorry but I'm quite confused since I'm still seeing this error when building Android apk on Defold 1.7.0.
What should I do to have this change working?

@britzl
Copy link
Contributor

britzl commented May 2, 2024

This was merged last week so it is not included in bob.jar for 1.7.0. It is also not included in 1.8.0 since the beta is too old. It will be included in 1.8.1, but you can try it now by downloading the bob.jar alpha for 1.8.1:

https://github.com/defold/defold/releases/tag/1.8.1-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bob Issues related to the bob command line build tool bug Something is not working as expected good first issue? The issue might be good for beginners wanting to work on the engine or the editor more info The issue is lacking required information
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants