Closed dekuvjs closed 6 years ago
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", bundleAssetName: "app.bundle", ]
apply from: "../../node_modules/react-native/react.gradle"
/**
/**
android { compileSdkVersion 27 buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.optic"
multiDexEnabled true
minSdkVersion 17
targetSdkVersion 22
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
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"
signingConfig signingConfigs.release
}
}
// 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
}
}
}
dexOptions {
incremental true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
}
dependencies { // From node_modules
implementation(project(':react-native-jitsi-meet')) { exclude group: 'com.facebook.react',module:'react-native-locale-detector' exclude group: 'com.facebook.react',module:'react-native-vector-icons' exclude group: 'com.facebook.react',module:'react-native-fetch-blob:0.10.8-jitsi-3' } implementation project(':react-native-onesignal') implementation project(':react-native-share') implementation project(':react-native-restart') implementation (project(':react-native-camera')) { exclude group: "com.google.android.gms" exclude group: "com.android.support" implementation 'com.android.support:exifinterface:27.+' implementation ('com.google.android.gms:play-services-vision:12.0.1') { force = true } } implementation project(':react-native-fingerprint-scanner') implementation project(':react-native-text-input-mask') implementation project(':react-native-fs') implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.facebook.react:react-native:' implementation project(':react-native-interactable') implementation project(':react-native-vector-icons') implementation project(':react-native-splash-screen') implementation project(':rn-fetch-blob') implementation project(':react-native-document-picker')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.facebook.react:react-native:'
}
// 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' }
my app/build.gradlew
Hi, can you post the full log. The error message you posted is too generic, there should be something more specific somewhere in the build log.
I got with the problem, the library is crashing with react-native-fetch-blob and I need to use it. Maybe when I implement the jitsi meet sdk, that happend.
Now I'm getting this error on android. Any idea.