Skip to content
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

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

Open
philippegoncalves opened this issue Jul 21, 2021 · 11 comments
Open

Comments

@philippegoncalves
Copy link

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

@sunxiaobiu
Copy link

same issue here, any ideas?

@sunxiaobiu
Copy link

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

@henrichg
Copy link

henrichg commented Aug 26, 2021

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.

@Reginer
Copy link

Reginer commented Sep 13, 2021

Try this

@henrichg
Copy link

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

@z3r0r4
Copy link

z3r0r4 commented Sep 17, 2021

Try this

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

@henrichg
Copy link

henrichg commented Oct 1, 2021

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.

@elesbb
Copy link

elesbb commented Nov 6, 2021

Try this

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

@Reginer
Copy link

Reginer commented Nov 8, 2021

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

@elesbb
Copy link

elesbb commented Nov 8, 2021

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?

@Reginer
Copy link

Reginer commented Nov 9, 2021

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

services.jar

compileOnly services.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants