react-native-blur icon indicating copy to clipboard operation
react-native-blur copied to clipboard

Android build failed

Open flyinghawker opened this issue 7 years ago • 6 comments

:react-native-blur:processReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-blur:processReleaseResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

as instructed for Android we need to configure as below android { // make sure to use 23.0.3 instead of 23.0.1 buildToolsVersion '23.0.3'

// ...
defaultConfig {
    // Add these lines below the existing config
    renderscriptTargetApi 23
    renderscriptSupportModeEnabled true
}

}

but version 23 was reported as too low version, currently version is "26.0.3"

"react-native": "0.56.0", "react-native-blur": "^3.2.2"

flyinghawker avatar Aug 12 '18 05:08 flyinghawker

I have the same problem :/

GuilhermeVenci avatar Aug 20 '18 21:08 GuilhermeVenci

same here

thecooltechguy avatar Aug 26 '18 19:08 thecooltechguy

@flyinghawker Try to use com.android.tools.build:gradle:3.2.0-alpha13 in build.gradle

mzxyz avatar Aug 28 '18 01:08 mzxyz

Hi guy, did anyone got it working with RN: 0.57?

jctf avatar Oct 18 '18 11:10 jctf

@jctfox i use RN 0.57 had the same problem and solved by this

define the sdkTools version to use in build.gradle

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion rootProject.ext.compileSdkVersion
                buildToolsVersion rootProject.ext.buildToolsVersion
            }
        }
    }
}

 ext {
        googlePlayServicesVersion = "15.0.1"
        compileSdkVersion = 27
        buildToolsVersion = "27.0.3"
    }

DanGDroid avatar Nov 08 '18 10:11 DanGDroid

This should solve the problem (just add to your android/build.gradle):

buildscript {...}

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion rootProject.ext.compileSdkVersion
                buildToolsVersion rootProject.ext.buildToolsVersion
            }
        }
    }
}
...

thodwris avatar Mar 14 '19 10:03 thodwris