Fixed
Status Update
Comments
rm...@google.com <rm...@google.com> #2
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
je...@google.com <je...@google.com>
[Deleted User] <[Deleted User]> #3
I can confirm that this an issue in the Android Gradle Plugin `3.4.0-alpha08` (and earlier alphas). Since Gradle 5.1+ and AGP 3.4.0+ need each other, this should be fixed. Otherwise Plugin development with composite builds is not possible with this combination.
hu...@google.com <hu...@google.com> #4
Thank you for reporting this issue and attaching a project!
This issue has been fixed. The fix will be included in 3.3.1 (or 3.3.0 if I'm lucky) and 3.4.0-alpha10.
https://android.googlesource.com/platform/tools/base/+/ccdd7a7daa43fcf40bd92b5ece4525101c5bf404
This issue has been fixed. The fix will be included in 3.3.1 (or 3.3.0 if I'm lucky) and 3.4.0-alpha10.
hu...@google.com <hu...@google.com> #5
Release team told me that the fix will be included in 3.3.0 final.
se...@gmail.com <se...@gmail.com> #6
Great news! Thanks!
a8...@gmail.com <a8...@gmail.com> #7
Facing the same problem right now. Gradle build successful. But the real thing the it's gonna throw a ClassNotFoundException out. when i tried to run the app on my android device.
hu...@google.com <hu...@google.com> #8
@#7: It appears to be a different issue: (1) In this issue, the build fails; (2) The exception in this issue is ClassCastException, not ClassNotFoundException. Please file a new bug with us.
(If you still believe it's the same issue, can you try 3.4.0-alpha10 and see if it has been fixed?)
(If you still believe it's the same issue, can you try 3.4.0-alpha10 and see if it has been fixed?)
se...@gmail.com <se...@gmail.com> #9
I can confirm that the original issue is fixed in 3.4.0-alpha10. It's not reproduced in my real project and in sample project attached to the issue.
Description
Build: AI-183.4588.61.34.5173923, 201812110000
JRE: 1.8.0_152-release-1248-b01x64 JetBrains s.r.o
OS: Mac OS X(x86_64) v10.14.1
Android Gradle Plugin: 3.4.0-alpha08
Gradle: 5.1-milestone-1, 5.1-rc-1
Steps to reproduce:
1. Create a project with included build (
2. Create a module with a custom Gradle plugin in included build.
3. Create a module with a java library in included build.
4. Add the module with a java library as a dependency to the module with a custom Gradle plugin.
5. Apply custom Gradle plugin to a module created in main project.
Expected result: Build successful.
Actual result: Build is failed with exception "java.lang.ClassCastException: org.gradle.internal.component.local.model.DefaultProjectComponentSelector cannot be cast to org.gradle.api.artifacts.component.ModuleComponentSelector" (see full stacktrace in build-output.txt).
Issue is not reproduced when using Android Gradle Plugin 3.2.1