-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build android library with two or more local aar libs failed at version 3.5.0 #10882
Comments
I ran into the same issue with an internal component and resolved by downgrading Gradle to 3.4.2. This issue still persists in Gradle 3.5.2. |
Hi there, any solution found for this problem? |
this problem still occurred in Gradle 3.5.3 |
That's correct. If you want to "fix" it by downgrading, try using |
I couldn't downgrade the Gradle version, I fixed it by uploading the aar's to internal artifactory |
Interesting.. Can you share some details which files you uploaded? |
@mzennis could you please describe how you did this:
|
OK, here is a little update from my side on this issue. I'm using React native and latest versions of RN 0.63 uses gradle plugin 3.5.3 by default. I tried to update to gradle plugin 3.6.4 and it seems to work, solving by the way this issue with aar files. Hope this will help someone. |
I fixed it by add this code in module bulid.gradle
|
I uploaded the aar library file that was previously local to the internal repository. before: now: |
Thank you for your interest in Gradle! This is an issue with the Android Gradle Plugin which is developed by Google and cannot be addressed in the core of the Gradle Build Tool. Please open such Android-related issues on the Android Issue Tracker at https://source.android.com/source/report-bugs |
Expected Behavior
build android library with two or more local aar libs success in AS
Current Behavior
build failed
Context
I want build the library to aar for other project, but build failed.
Steps to Reproduce
when run command: gradlew mylibrary:build
FAILURE: Build failed with an exception.
Execution failed for task ':mylibrary:mergeDebugJavaResource'.
example project: https://github.com/kawais/testapp
Your Environment
android stuido 3.5
windows 10
The text was updated successfully, but these errors were encountered: