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

android.jar for api30 from Google Drive does not work anymore

Open philippegoncalves opened this issue 3 years ago • 11 comments

I believe the jar is broken, was working previously, but new jar added recently produces the following error at assemble:

> 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: /opt/android-sdk-linux_private/platforms/android-30/android.jar.
         > java.lang.NullPointerException (no error message)

Replacing by previous jar fixes the issue, size is different: good jar is about 28M, wrong one is 47M

philippegoncalves avatar Jul 21 '21 15:07 philippegoncalves

same issue here, any ideas?

sunxiaobiu avatar Jul 22 '21 00:07 sunxiaobiu

I use the command './gradlew assembleDebug --info' to build my project and it turned out to be successful。。。

sunxiaobiu avatar Aug 01 '21 04:08 sunxiaobiu

Please, please, how to fix this? In my application is Wi-Fi Hotspot on/off function and without compile sdk=30 is not possible to use TetheringManager.

henrichg avatar Aug 26 '21 10:08 henrichg

Try this

Reginer avatar Sep 13 '21 03:09 Reginer

@Reginer thank you very much. Build working ;-)

henrichg avatar Sep 13 '21 10:09 henrichg

Try this

no idea if this can be trusted but it works. Thanks a lot

z3r0r4 avatar Sep 17 '21 14:09 z3r0r4

Try this

Working good. Tested in Galaxy S21, S10 with Android 11, Xiaomi Redmi Note 9 with Android 11, Pixel 3a with Android 12 beta 5, .... Also working in my app users.

henrichg avatar Oct 01 '21 09:10 henrichg

Try this

This does work. It is significantly smaller in size though. Is it missing any hidden classes?

elesbb avatar Nov 06 '21 16:11 elesbb

Try this

This does work. It is significantly smaller in size though. Is it missing any hidden classes?

Of cause not,It only include frameworks.jar,no services.jar

Reginer avatar Nov 08 '21 05:11 Reginer

Try this

This does work. It is significantly smaller in size though. Is it missing any hidden classes?

Of cause not,It only include frameworks.jar,no services.jar

Ah that makes sense. Is there any way to include services.jar?

elesbb avatar Nov 08 '21 14:11 elesbb

Ah that makes sense. Is there any way to include services.jar?

services.jar

compileOnly services.jar

Reginer avatar Nov 09 '21 01:11 Reginer