android / android/architecture-samples
Can't build/debug - "Failed to apply plugin [id 'com.android.internal.application']"
- Dominant language
- Kotlin
- Stars
- 45.8k
- Forks
- 11.9k
- PR merge metrics
- No merged PRs in 30d
Description
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\\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
Contributor guide
Research direction
Start by reproducing the build from the Android Studio project on Windows and inspect app/build.gradle at line 1, where the plugin application fails. Check the reported android.enableUnitTestBinaryResources deprecation against the project's current Android Gradle setup; done means the sample builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100