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

Does not work with Gradle Wrapper > 7.4.2 #122

Open
JasonTheDynamite opened this issue Aug 12, 2022 · 12 comments
Open

Does not work with Gradle Wrapper > 7.4.2 #122

JasonTheDynamite opened this issue Aug 12, 2022 · 12 comments

Comments

@JasonTheDynamite
Copy link

When using gradle wrapper 7.4.2 everything works fine.
After updating to 7.5 or latest: 7.5.2 stops working. App crashes with error:

java.lang.RuntimeException: Unable to instantiate application com.package.App package com.package: java.lang.ClassNotFoundException: Didn't find class "com.package.App" on path: DexPathList[[zip file "/data/app/~~QVI1HFgZRlF8WjmT_DBUkA==/com.package-18hjwzkh7_fCB0VWn-o1nQ==/base.apk"]

@skrugly
Copy link
Owner

skrugly commented Aug 12, 2022

Probably you need to run ./gradlew clean after upgrading Gradle and maybe do Invalidate Caches and Restart in Android Studio.

@JasonTheDynamite
Copy link
Author

Tested. Does not help. Nothing changes after clean / restart & invalidate cache and combinations.
Changing back to 7.4.2-all fixes problem.

@skrugly
Copy link
Owner

skrugly commented Aug 12, 2022

Just checked and it works fine with Gradle 7.5 and 7.5.2.
You could try to update versions of the following things as well:

  1. Android Gradle Plugin com.android.tools.build:gradle:7.2.2
  2. Builds tools version at least 31.0.0
  3. Android Studio to the latest versions. I'm using Android Studio Dolphin | 2021.3.1 Beta 5

@JasonTheDynamite
Copy link
Author

I have latest version of all mentioned plugins & libraries.
"Android Studio Dolphin | 2021.3.1 Beta 5" - I do not use beta software. Especially Android studio.

@skrugly
Copy link
Owner

skrugly commented Aug 12, 2022

Will the app launch successfully if you build it without mirakle?

@JasonTheDynamite
Copy link
Author

Yes. It will. Tested every possible option. With mirakle outputs folder is empty.

@skrugly
Copy link
Owner

skrugly commented Aug 12, 2022

You may try to ssh to remote machine and clean Gradle cache there

> ssh remote_machine
> sudo rm -rf ~/.gradle/caches/

And just in case stop gradle daemons on remote machine

> ssh remote_machine
> cd some_project_dir
> ./gradlew --stop 

@JasonTheDynamite
Copy link
Author

tried. still does not work.

@skrugly
Copy link
Owner

skrugly commented Aug 12, 2022

Could you paste your mirakle_init.gradle file

@JasonTheDynamite
Copy link
Author

mirakle_init.txt
Please change extension to .gradle

@skrugly
Copy link
Owner

skrugly commented Aug 12, 2022

Just in case try the latest RC version of mirakle
classpath 'io.github.adambl4:mirakle:1.5.3-RC-9

@skrugly
Copy link
Owner

skrugly commented Aug 12, 2022

Is there a chance you can prepare a repo with a minimal project to reproduce the bug?

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

2 participants