React Native Build Error Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'
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 |
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 |
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 '18 at 8:39
Frank AndrewFrank Andrew
608
608
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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 |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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 |
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 |
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 '18 at 9:12
nikos fotiadisnikos fotiadis
6671514
6671514
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.
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