-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':app:processReleaseResources'. #19239
Comments
i am also getting this exact same issue with this exact same step by step. i would LOVE to know why this is happening for release builds but not debug builds. |
For me this works:
26.0.2 is the vs that I've seted in /android/app/build.gradle file for buildToolsVersion. |
@rodrigofbm, you workaround not works for me =/
Can you explain what this code are doing? Perhaps I can understand what is happening with my project. |
@FSPinho try only this:
|
Thanks! |
Can you send me information about the development environment? |
for my case, I uses below compileSdkVersion = 27 |
So you have to change the code for:
|
About that, I had tried it. still the same error result. For Gradle v4.4. It just like something linking to this problem after I install react-native-camera latest version. Forced to update to newer version in order to compile. And here it is, this problem show up. |
@kkusanagi I have the same problem after installing react-native-camera v1.1.4. Did you solve it? |
hi, @pkhien95 . This is how it work for me now by using react-native-camera v0.10.0. Environment: Packages: (wanted => installed) In android android/gradle/wrapper/gradle-wrapper.properties change this Add below in android/gradle.properties to SOLVE this thread problem TEMPORARILY workaround. Need remove in future before year 2019. Then you may meet another error as duplicate file for drawable-**** png file. in android/build.gradle, setting like below.
|
@kkusanagi Thanks. This is my solution for the latest version of react-native-camera (1.1.4):
|
In my case, none of the above worked, nor was necessary..... aapt in build tools 23 is a 32bit binary... I'm on a 64 bit system. I didn't have correct 32 bit libs installed so it didn't run. Installing libncurses5:i386, libstdc++6:i386 and zlib1g:i386 fixed it. |
@pkhien95 Your solution works for me, thank you for saving my day. |
in android/gradle.properties, setting like below. |
@Scimanyd your solution work for me . thank for that |
@Scimanyd Thanks bro, your solution worked, but what exactly does it do though. |
@matt-goingout you are genious, vlws!!! nince |
where and how to install these libraries? |
@viv3kk just run sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 in ubuntu |
@Scimanyd I feel like it's worth noting that
It seems that this will not be a viable option in the long run. |
"apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 in ubuntu" How about MacOS? how to install it? |
@pkhien95
How does your |
Hey, guys. I've also got the same issue after upgrade from RN 0.55 to 0.56, then I added this to my subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.1"
}
}
}
afterEvaluate {
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
targetSdkVersion 27
}
}
}
} |
For those who are doing this before generating apk
it generate unnecessary drawable images in drawable folder. so make sure to remove it and try again.
|
FWIW, having this bit in subprojects { project ->
afterEvaluate {
if((project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
} and this bit in subprojects {
project.configurations.all {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion rootProject.ext.buildToolsVersion
}
}
}
} is what did the trick. |
I have resolved my issue with this command |
if you want to build just debug apk for offline then try this command
|
This worked for me as well react-native@0.59.9 |
working for me |
@fossage where to place the |
/android/build.gradle |
thanks a lot it worked now with 0.59.1, i was struggling from last 3 days sometime i hate react native i thought to move native development but people like you always change my mind :-) |
Nothing works for me on react native 0.59.0 |
In my case, i removed the resolutionStrategy block what I was using... My android/build.gradle are like this:
and my android/app/build.gradle are like this:
|
@pkhien95 thanks your solution worked for me , thanks React Native Environment Info: if somebody still have issue , they can follow best |
|
Suffering from this with RN Fixed with this after
|
This definitely worked for me. Thanks |
Thanks so much, very helpful for me! |
finally something worked. |
I have the same problem after using react-native-ble-manager(6.5.1).
|
I was stuck in this for the last three days. finally, I was able to solve. Thanks |
ty bro I have solved this problem |
Environment:
OS: Linux 4.13
Node: 9.10.1
Yarn: 1.6.0
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3
Steps to Reproduce
./gradlew assembleRelease
Expected Behavior
make work???
Actual Behavior
The log:
build.gradle:
UPDATE
I've seted
android.enableAapt2 = false
in gradle.properties file, but now I'm receiving this log:Why is this happening?
The text was updated successfully, but these errors were encountered: