shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.49k stars 1.53k forks source link

Flavors don't work #260

Open Th3CracKed opened 6 years ago

Th3CracKed commented 6 years ago

when i try to build each flavor with resguardRelease the build finish successfully, but when I try to build two flavor at the same time( resguardRelease), i get 2 errors : error: cannot find symbol Button Start = findViewById(R.id.Start); ^ symbol: variable Start error: cannot find symbol Button Play = findViewById(R.id.Play); ^ symbol: variable Play location: class id 2 errors :app:compileFlavorReleaseJavaWithJavac FAILED

simpleton commented 6 years ago

You can check the sample for figuring out how to use the flavor with AndResGuard https://github.com/shwenzhang/AndResGuard/blob/master/AndResGuard-example/app/build.gradle#L88