We are using RNFS module in our app, it was working fine till Google API level supported was 22, But Now with google support moving to level 26, The module is failing.
Same here, at least I think it's the same:
Execution failed for task ':react-native-fs:processReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
@JeremyBradshaw7 and @abhi-sharma-lf
I too had the same issue fixed by changing the compileSdkVersion and buildToolsVersion in
node_modules/react-native-fs/android/build.gradle
and changed it from
`CompileSdkVersion 25
buildToolsVersion "25.0.0"`
To
compileSdkVersion 26
buildToolsVersion "26.0.3"
And the build was successful
We should definitely update the buildToolsVersion to 26 right?
@itinance yes we should
I have done what @nidhinkumar06 said and im still getting this issue.
```apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
react-native bundle with the correct arguments during the Android buildapply from: "../../node_modules/react-native/react.gradle" line.project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-sentry/sentry.gradle"
/**
/**
android {
compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig {
applicationId "com.cpad"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
compile project(':react-native-sentry')
compile project(':react-native-fs')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:26.1.0"
compile "com.facebook.react:react-native:+" // From node_modules
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
```
@The-Code-Monkey have you done the changes in node_modules/react-native-fs/android/build.gradle of react-native-fs plugin or in your project folder android/build.gradle
my project folder build.gradle
i did it in my node modules build.gradle and it works so ive made a pr for it
Most helpful comment
i did it in my node modules build.gradle and it works so ive made a pr for it