bytedance / AabResGuard

The tool of obfuscated aab resources.(Android app bundle资源混淆工具)
Apache License 2.0
1.32k stars 182 forks source link

Not working/compatible with Android Studio 4.1 #28

Open eakteam opened 4 years ago

eakteam commented 4 years ago
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
   > com.android.build.gradle.internal.VariantManager.getVariantScopes()Ljava/util/List;

i think the problem is at AabResguardPlugin.kt :

override fun apply(project: Project) {
        checkApplicationPlugin(project)
        project.extensions.create("aabResGuard", AabResGuardExtension::class.java)
        project.afterEvaluate {
            getVariantManager(project).variantScopes.forEach { scope ->
                createAabResGuardTask(project, scope)
            }
        }
    }
eakteam commented 4 years ago

Any news ? It is useless with AS 4.1

JingYeoh commented 4 years ago

@eakteam Please tell me the AGP version.

eakteam commented 4 years ago

@JingYeoh , AGP version is : classpath ("com.android.tools.build:gradle:4.1.0-alpha05")

Also, i have just tried version 0.1.5 and still doesn't works.

Please, if you can give an ETA it would be awesome. Thanks for the great work as always !

JingYeoh commented 4 years ago

@eakteam I'sorry, AGP-4.1.0-* changed a lot of Gradle API, and it's still in alpha version, I need some time to adapt.

eakteam commented 4 years ago

@JingYeoh , i understand. Will wait for it, its great library, worth it.

Thanks

eakteam commented 4 years ago

Hi... Do you have any news about supporting latest Gradle Plugin ?

sebthom commented 4 years ago

@JingYeoh Thanks for this awesome tool. I am also very interested in seeing compatibility restored with latest Android Studio.

saleho27 commented 3 years ago

@eakteam I'sorry, AGP-4.1.0-* changed a lot of Gradle API, and it's still in alpha version, I need some time to adapt.

What gradle version currently works well with AabResguard? Should I downgrade the gradle?

singun-lxd commented 3 years ago

same problem

sebthom commented 3 years ago

The new 0.1.8 release works. Thanks!