Skip to content

Spaces are not allowed in property names on Android #60

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

Open
popovanton0 opened this issue Apr 18, 2025 · 2 comments
Open

Spaces are not allowed in property names on Android #60

popovanton0 opened this issue Apr 18, 2025 · 2 comments

Comments

@popovanton0
Copy link
Contributor

When I tried to launch the examples app on Android, the following compilation error occurred:

com.android.tools.r8.internal.jf: Space characters in SimpleName 'ComposeLogo Default State$delegate' are not allowed prior to DEX version 040

I was able to fix it by replacing spaces in example story names with underscores.

Is it possible to do something in the compiler plugin to remove spaces on Android?

@popovanton0 popovanton0 changed the title Spaces are not allowed in the property names on Android Spaces are not allowed in property names on Android Apr 18, 2025
@StefMa
Copy link
Contributor

StefMa commented Apr 18, 2025

According to this page https://source.android.com/docs/core/runtime/dex-format#definitions, DEX 040 was introduced with Android 10.
I am not sure but you could try running on Android 10? Or increase the minSdk version to API 29 🤔

@popovanton0
Copy link
Contributor Author

I launched an app on API 33. minSdk in the example project is 26. Increasing the minSdk would probably solve the problem, but it would be nice if Storytale worked on API 21 and up, just like Jetpack Compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants