Can't build/debug - "Failed to apply plugin [id 'com.android.internal.application']"
Hello!
I have the most recent version of android studio, of the project (on master branch), of kotlin, gradle and windows 10. Still can't build.
This is what it says:
Build file 'C:\Users\<user>\AndroidStudioProjects\architecture-samples\app\build.gradle' line: 1
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.internal.application']
> The option 'android.enableUnitTestBinaryResources' is deprecated.
The current default is 'false'.
It has been removed from the current version of the Android Gradle plugin.
The raw resource for unit test functionality is removed.
I've basically only cloned it and now attempted to start it on my OnePlus 8. What am I doing wrong?
/ Lorentz
Fixed it locally by setting android.enableUnitTestBinaryResources=false in gradle.properties, for anyone else who runs into the issue.
for my case it was android.enableBuildCache=true, its is removed from gradle version 7, just comment or remove #android.enableBuildCache=true
There is no need in newer version of Android for enableUnitTestBinaryResources in the file since it has been deprecated and is set to false by default.
Simply go to the gradle.properties file and remove this line entirely and your app should compile.
android.enableUnitTestBinaryResources=true
Fixed it locally by setting
android.enableUnitTestBinaryResources=falsein gradle.properties, for anyone else who runs into the issue.
Not worked dude jsjsj