Status Update
Comments
cl...@google.com <cl...@google.com>
ga...@gmail.com <ga...@gmail.com> #2
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
ga...@google.com <ga...@google.com>
bi...@google.com <bi...@google.com> #3
ga...@linecorp.com <ga...@linecorp.com> #4
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
ga...@linecorp.com <ga...@linecorp.com> #5
bi...@google.com <bi...@google.com>
ga...@linecorp.com <ga...@linecorp.com> #6
ga...@linecorp.com <ga...@linecorp.com> #7
bi...@google.com <bi...@google.com> #8
cc...@google.com <cc...@google.com> #9
ga...@linecorp.com <ga...@linecorp.com> #10
```
(15:58:11) C02W513SHTD8:files aso$ /opt/android-sdk-macosx/tools/bin/sdkmanager --version
26.1.1
(15:58:17) C02W513SHTD8:files aso$ /opt/android-sdk-macosx/tools/bin/sdkmanager --install --package_file=package_file
Warning: Unknown argument --package_file=package_file
```
bi...@google.com <bi...@google.com> #11
xa...@google.com <xa...@google.com> #12
ey...@gmail.com <ey...@gmail.com> #13
xa...@google.com <xa...@google.com> #14
bi...@google.com <bi...@google.com> #15
an...@google.com <an...@google.com> #16
Has anyone re-tried it?
We switched back to RUN sdkmanager --package_file=$ANDROID_HOME/packages.txt
in our Dockerfile back in March of 2021.
th...@gmail.com <th...@gmail.com> #17
For what it's worth, I did a quick test with the latest CLI: 11076708 (
./sdkmanager --sdk_root="../sdk" --package_file=deps.txt
Deps.txt:
platform-tools
extras;google;instantapps
build-tools;35.0.0-rc3
So perhaps this is now resolved? I haven't tried it with more packages
so...@google.com <so...@google.com> #18
Comment added by automation: A postmortem has been automatically requested for this issue. Please author a postmortem on IRM. See go/android-postmortem-guidance for more context and details, including how to handle the case when this issue does not need a postmortem. If you have any questions not answered by go/android-postmortem-guidance, please email android-hygiene-tpm@, instead of reassigning the fixed bug. Thank you.
ma...@gmail.com <ma...@gmail.com> #19
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared_preferences_android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':shared_preferences_android:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: C:\Users\manor\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
> Error while executing process C:\Program Files\Android\Android Studio1\jbr\bin\jlink.exe with arguments {--module-path C:\Users\manor\.gradle\caches\transforms-3\f41347c990b0e680f05f596924e70932\transformed\output\temp\jmod --add-modules java.base --output C:\Users\manor\.gradle\caches\transforms-3\f41347c990b0e680f05f596924e70932\transformed\output\jdkImage --disable-plugin system-modules}
* Try:
BUILD FAILED in 13s
┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐
│ [!] This is likely due to a known bug in Android Gradle Plugin (AGP) versions less than 8.2.1, │
│ when │
│ 1. setting a value for SourceCompatibility and │
│ 2. using Java 21 or above. │
│ To fix this error, please upgrade your AGP version to at least 8.2.1. The version of AGP that │
│ your project uses is likely defined in: │
│ D:\filmy_fun\android\settings.gradle, │
│ in the 'plugins' closure (by the number following "com.android.application"). │
│ Alternatively, if your project was created with an older version of the templates, it is likely │
│ in the buildscript.dependencies closure of the top-level build.gradle: │
│ D:\filmy_fun\android\build.gradle, │
│ as the number following "com.android.tools.build:gradle:". │
│ │
│ For more information, see: │
│
│
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
te...@gmail.com <te...@gmail.com> #20
any Solution of this??
fl...@gmail.com <fl...@gmail.com> #21
xa...@google.com <xa...@google.com> #22
If you are coming here via a link coming from Flutter, the solution is in the flutter output:
To fix this error, please upgrade your AGP version to at least 8.2.1
Description
DESCRIBE THE ISSUE IN DETAIL:
This is similar issue with b/294120922 , but it has different cause.
STEPS TO REPRODUCE:
I tried to perform
jlink
manually, I got following error message.IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: 2022.3.1 OpenJDK 21 ea
Version of Gradle Plugin: 8.1.0
Version of Gradle: 8.2.1
Version of Java:
OS: Linux