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

Can you run it in Android Studio 3.1.3? #6

Closed
hendrawd opened this issue Jul 24, 2018 · 4 comments
Closed

Can you run it in Android Studio 3.1.3? #6

hendrawd opened this issue Jul 24, 2018 · 4 comments

Comments

@hendrawd
Copy link

hendrawd commented Jul 24, 2018

AAPT2 will show error:

error: attribute 'android:name' in <activity-alias> tag must be a valid Java class name.
Message{kind=ERROR, text=error: attribute 'android:name' in <activity-alias> tag must be a valid Java class name., sources=[/Users/hendrawd/AndroidStudioProjects/MyProject/app/build/intermediates/manifests/full/prod/debug/AndroidManifest.xml:59], original message=, tool name=Optional.of(AAPT)}

After change - to _, MainActivity is invisible(no launcher at all), so I can't run the app.

@as-if-iam
Copy link

as-if-iam commented Aug 16, 2018

Working here buddy :-)

I had same issue then I saw that my package name is activity and then I added the class launcher name

activity.SplashActivity-one
activity.SplashActivity-two
activity.SplashActivity-three

and it worked

@as-if-iam
Copy link

and write this in gradle.properties

android.enableAapt2=false

@hendrawd
Copy link
Author

hendrawd commented Aug 16, 2018

After learning about the downside of this method(in some devices, the icons will never show up at all), we decided to drop this feature, so I think I will not try this @asif84468 . Disabling aapt2 also will make our app build slower and not optimize for release apk. I will wait for @myinnos to fix it and not gona create a pull request to fix it.

@myinnos
Copy link
Owner

myinnos commented Aug 1, 2019

@hendrawd @asif84468 fixed in new version please update lib gradel version Read.Me

@myinnos myinnos closed this as completed Aug 1, 2019
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

3 participants