React Native Build Error Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'
up vote
1
down vote
favorite
I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.
This is the complete error :
> Task :app:processReleaseGoogleServices
Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 54s
203 actionable tasks: 4 executed, 199 up-to-date
Please anyone help me to solve this problem.
Thanks.
android reactjs react-native gradle
add a comment |
up vote
1
down vote
favorite
I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.
This is the complete error :
> Task :app:processReleaseGoogleServices
Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 54s
203 actionable tasks: 4 executed, 199 up-to-date
Please anyone help me to solve this problem.
Thanks.
android reactjs react-native gradle
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.
This is the complete error :
> Task :app:processReleaseGoogleServices
Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 54s
203 actionable tasks: 4 executed, 199 up-to-date
Please anyone help me to solve this problem.
Thanks.
android reactjs react-native gradle
I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.
This is the complete error :
> Task :app:processReleaseGoogleServices
Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 54s
203 actionable tasks: 4 executed, 199 up-to-date
Please anyone help me to solve this problem.
Thanks.
android reactjs react-native gradle
android reactjs react-native gradle
asked Nov 19 at 8:39
Frank Andrew
388
388
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
You need to update your android build tools version
.
The following worked for me.
In android/build.gradle
change ext
to look like this:
ext {
buildToolsVersion = "28.0.0"
minSdkVersion = ... // your min SDK
compileSdkVersion = 28
targetSdkVersion = ...// your target SDK
supportLibVersion = "28.0.0"
}
and put this at the end of your file:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
afterEvaluate {
project -> if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
}
}
}
}
In android/app/build.gradle
change this: "com.android.support:appcompat-v7:27.1.1"
to this: "com.android.support:appcompat-v7:28.0.0"
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You need to update your android build tools version
.
The following worked for me.
In android/build.gradle
change ext
to look like this:
ext {
buildToolsVersion = "28.0.0"
minSdkVersion = ... // your min SDK
compileSdkVersion = 28
targetSdkVersion = ...// your target SDK
supportLibVersion = "28.0.0"
}
and put this at the end of your file:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
afterEvaluate {
project -> if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
}
}
}
}
In android/app/build.gradle
change this: "com.android.support:appcompat-v7:27.1.1"
to this: "com.android.support:appcompat-v7:28.0.0"
add a comment |
up vote
2
down vote
accepted
You need to update your android build tools version
.
The following worked for me.
In android/build.gradle
change ext
to look like this:
ext {
buildToolsVersion = "28.0.0"
minSdkVersion = ... // your min SDK
compileSdkVersion = 28
targetSdkVersion = ...// your target SDK
supportLibVersion = "28.0.0"
}
and put this at the end of your file:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
afterEvaluate {
project -> if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
}
}
}
}
In android/app/build.gradle
change this: "com.android.support:appcompat-v7:27.1.1"
to this: "com.android.support:appcompat-v7:28.0.0"
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You need to update your android build tools version
.
The following worked for me.
In android/build.gradle
change ext
to look like this:
ext {
buildToolsVersion = "28.0.0"
minSdkVersion = ... // your min SDK
compileSdkVersion = 28
targetSdkVersion = ...// your target SDK
supportLibVersion = "28.0.0"
}
and put this at the end of your file:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
afterEvaluate {
project -> if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
}
}
}
}
In android/app/build.gradle
change this: "com.android.support:appcompat-v7:27.1.1"
to this: "com.android.support:appcompat-v7:28.0.0"
You need to update your android build tools version
.
The following worked for me.
In android/build.gradle
change ext
to look like this:
ext {
buildToolsVersion = "28.0.0"
minSdkVersion = ... // your min SDK
compileSdkVersion = 28
targetSdkVersion = ...// your target SDK
supportLibVersion = "28.0.0"
}
and put this at the end of your file:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
afterEvaluate {
project -> if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
}
}
}
}
In android/app/build.gradle
change this: "com.android.support:appcompat-v7:27.1.1"
to this: "com.android.support:appcompat-v7:28.0.0"
answered Nov 19 at 9:12
nikos fotiadis
584414
584414
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53370968%2freact-native-build-error-execution-failed-for-task-react-native-get-sms-androi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown