Fixed
Status Update
Comments
ha...@google.com <ha...@google.com>
je...@google.com <je...@google.com>
am...@google.com <am...@google.com> #2
This was broken by 3bca759a5ff08352de831bb1e9b61b1ec2b3362d.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
am...@google.com <am...@google.com> #3
Almost 2 months later and this is still broken
ga...@linecorp.com <ga...@linecorp.com> #4
Since there is no progression, I wanted to share our quick-fix for the issue.
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
am...@google.com <am...@google.com> #5
jb...@google.com What is the update on this?
ga...@linecorp.com <ga...@linecorp.com> #7
This has been fixed on master today (internal ref: ag/2945015) and will be available in the next SDK release.
Description
Since Android Gradle Plugin 8.1.0-alpha02, `:app:processDebugMainManifest` task was failed.
STEPS TO REPRODUCE:
1. AndroidManifest.xml has following elements to display badge count on several launchers.
```
<manifest>
<queries>
<provider android:authorities="com.sonymobile.home.resourceprovider" />
<provider android:authorities="com.android.badge" />
<provider android:authorities="com.huawei.android.launcher.settings" />
</queries>
</manifest>
```
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
```
$ ./gradlew :app:bundleDebug
> Task :app:processDebugMainManifest FAILED
app/src/main/AndroidManifest.xml:2187:19-77 Error:
Attribute provider@authorities value=(com.sonymobile.home.resourceprovider) from AndroidManifest.xml:2187:19-77
is also present at AndroidManifest.xml:2188:19-58 value=(com.android.badge).
Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml to override.
app/src/main/AndroidManifest.xml:2187:19-77 Error:
Attribute provider@authorities value=(com.sonymobile.home.resourceprovider) from AndroidManifest.xml:2187:19-77
is also present at AndroidManifest.xml:2189:19-77 value=(com.huawei.android.launcher.settings).
Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml to override.
See
```
Workaround : Just add `tools:replace="android:authorities"` on provider element
```
<manifest>
<queries>
<provider android:authorities="com.sonymobile.home.resourceprovider" />
<provider android:authorities="com.android.badge"
tools:replace="android:authorities" />
<provider android:authorities="com.huawei.android.launcher.settings"
tools:replace="android:authorities" />
</queries>
</manifest>
```
But it seems to be weird, because these should not be replaced by `processDebugMainManifest` task.
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build: N/A
Version of Gradle Plugin: Android Gradle Plugin 8.1.0-alpha02 - alpha06 (latest alpha release)
Version of Gradle: 8.0
Version of Java: OpenJDK 17
OS: Any