Cannot set the com.android.graphics.injectLayers.enable attribute to true in the APK's AndroidManifest.xml file
georgehoss opened this issue · 2 comments
Describe the bug
I encountered an issue when trying to upload my Flutter app bundle to the Google Play Store. During the upload process, I received an error stating "Cannot set the com.android.graphics.injectLayers.enable attribute to true in the APK's AndroidManifest.xml file" This error prevented me from successfully publishing my app on the Play Store.
To Reproduce
- Generate an app bundle using the Flutter build command.
- Upload the app bundle to the Google Play Console.
- During the upload process, the error message "Cannot set the com.android.graphics.injectLayers.enable attribute to true in the APK's AndroidManifest.xml file" is displayed, preventing the upload from completing successfully.
Expected behavior
The app bundle should be uploaded to the Google Play Store without any errors related to "Cannot set the com.android.graphics.injectLayers.enable attribute to true in the APK's AndroidManifest.xml file"
Version
Flutter version: 3.7.12
Flutter build command used to generate the app bundle: flutter build appbundle
dependencies:
haishin_kit: ^0.9.4
Smartphone info.
Android min sdk 21
Additional context
I realized that it is your package that is causing the error because I removed the dependency and all its usages from the project, and I was able to upload an app bundle successfully. The strange thing is that I had successfully uploaded an app bundle before using the package. I have been trying to upload the update to the store for over a month, and this issue has been preventing me from doing so. I even contacted Google Play support, but they couldn't assist me
Please let me know if there is any additional information or logs that I can provide to help resolve this issue.
Screenshots
Relevant log output
No response
Please see this discussion. shogo4405/HaishinKit.kt#144
Thank you @shogo4405 this solved the issue and its working on android.