goldfish07 / ResChiper

AAB Resource Obfuscation Tool for Android
Apache License 2.0
69 stars 9 forks source link

Is the plugin compatible with Gradle 8.4? #7

Open xiaojiangclassmate opened 6 months ago

xiaojiangclassmate commented 6 months ago

The gradle version used in my project is 8.4, but it cannot be used normally. The gradle error prompts that it is not compatible.

Error resolving plugin [id: 'io.github.goldfish07.reschiper', version: '0.1.0-rc4']
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
goldfish07 commented 6 months ago

are you using 8.4 (alpha) Gradle plugin in your project ?

xiaojiangclassmate commented 6 months ago

Not have

goldfish07 commented 6 months ago

no problem, i am personally using it in gradle-8.4 and gradle-8.6 and everything working fine !!!

in project/build.gradle do you have buildscript { dependencies { } } ?

xiaojiangclassmate commented 6 months ago

I added it on project/build.gradle

goldfish07 commented 6 months ago

are you using groovy or kotlin DLS ?

have you defines plugin in any other sub module ?

xiaojiangclassmate commented 6 months ago

The project uses kotlin DSL.

This plug-in is added to app/build.gradle. When synchronizing, gradle prompts an error that is incompatible.

goldfish07 commented 6 months ago

The error is not from the plugin; it's from your project setup. I haven't seen this error before, so I can't say much about it. It seems like you've already added a plugin with a different version.

Check all your build.gradle files to see if "reschiper" is implemented elsewhere or globally. Also, try clearing or invalidating the cache in Android Studio. This might help fix the problem.

xiaojiangclassmate commented 6 months ago

already solved

xiaojiangclassmate commented 6 months ago

The new project uses groovy without any problems. After switching to DSL, an error is reported.