aws-samples / aws-samples/aws-device-farm-sample-app-for-android
butterknife 10.1.0 < 14
- Dominant language
- Java
- Stars
- 174
- Forks
- 205
- PR merge metrics
- No merged PRs in 30d
Description
im getting the following error when trying to build this:
```
Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library [com.jakewharton:butterknife:10.1.0] /Users/nelson/.android/build-cache/f263ed3f2d86b8bbc41249e7b8e0f9c2c2d4fe9d/output/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="butterknife" to force usage
```
I tried following this solution here:
https://stackoverflow.com/questions/27095077/how-do-i-use-toolsoverridelibrary-in-a-build-gradle-file
And kept adding tools:xx,yy,zz until it came down to this issue:
```
AGPBI: {"kind":"error","text":"No resource identifier found for attribute \u0027appComponentFactory\u0027 in package \u0027android\u0027","sources":[{"file":"/Users/nelson/Code/sensay/aws-device-farm-sample-app-for-android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml","position":{"startLine":30}}],"original":"","tool":"AAPT"}
/Users/nelson/Code/sensay/aws-device-farm-sample-app-for-android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:31: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
```
then i gave up. i'm new to android dev. any suggestions?
Contributor guide
Research direction
Start with the AndroidManifest.xml error and the app/build/intermediates/manifests/full/debug/AndroidManifest.xml path, then inspect the app's build configuration for minSdkVersion and the Android Gradle Plugin setup. Reproduce the processDebugResources failure and determine a supported configuration that builds without the appComponentFactory error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- 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