Skip to content

Comments

Add namespace to support AGP8+#6

Open
famasf1 wants to merge 2 commits intoMAHAulia:mainfrom
famasf1:main
Open

Add namespace to support AGP8+#6
famasf1 wants to merge 2 commits intoMAHAulia:mainfrom
famasf1:main

Conversation

@famasf1
Copy link

@famasf1 famasf1 commented Apr 10, 2024

When i tried to build my app using Android Gradle Plugin 8+. I got this error,

Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.

Recommendation: remove package="com.vai.device_imei" from the source AndroidManifest.xml: {project path}\android\src\main\AndroidManifest.xml.

This is because Android Gradle Plugin 8.0+ required namespace in Module-level script. So i removed the package from AndroidManifest.xml and added the new namespace into the build.gradle instead.

I also removed package attributes in AndroidManifest to prevent

Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported. 

error during build phase. Feel free to edit your own namespaces before updating your package in pub.dev.

Tested on my app using OPPO Reno 5 Pro (API 33) and Android API 34 emulator.

@famasf1 famasf1 marked this pull request as ready for review April 11, 2024 03:59
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

Successfully merging this pull request may close these issues.

1 participant