android-hidden-api icon indicating copy to clipboard operation
android-hidden-api copied to clipboard

gradle fails with custom android.jar

Open AlexandrKozlovskiy opened this issue 2 years ago • 2 comments

Hello. I tryed to build android.jar using your guide. I pull framework.jar and build android.jar,but in gradle i get an error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:androidApis'.
Failed to transform android.jar to match attributes {artifactType=android-mockable-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime, returnDefaultValues=false}.
Execution failed for MockableJarTransform: C:\Users\ksash\AppData\Local\Android\Sdk\platforms\android-26\android.jar.

Please help me fix this issue and update build guide,if it needed.

AlexandrKozlovskiy avatar Oct 25 '22 04:10 AlexandrKozlovskiy

android-30 is alse failed

baotao14 avatar Mar 08 '23 07:03 baotao14

Getting same issue on android-33.

ishaan-bst avatar Mar 28 '23 11:03 ishaan-bst