GoldenOwlAsia / react-native-twitter-signin

MIT License
167 stars 302 forks source link

release build error #134

Open webexpert4rv opened 5 years ago

webexpert4rv commented 5 years ago

release build error.working fine on react-native run android give error on making release apk

Task :app:transformNativeLibsWithStripDebugSymbolForRelease Unable to strip library '/Users/user/Desktop/influencer-mobile/android/app/build/intermediates/transforms/mergeJniLibs/release/0/lib/armeabi/libucrop.so' due to missing strip tool for ABI 'ARMEABI'. Packaging it as is.

Task :react-native-twitter-signin:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

thecodecafe commented 4 years ago

@webexpert4rv That got fixed in a forked version of this library react-native-login-twitter

Gautham495 commented 3 years ago

Simple Steps:

Go to /node_modules/react-native-login-twitter/android/build.gradle

Change

android { compileSdkVersion 27 buildToolsVersion "27.0.3"

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
}
lintOptions {
    abortOnError false
}

}

to

android { compileSdkVersion 29 buildToolsVersion "29.0.2"

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"
}
lintOptions {
    abortOnError false
}

}

The exact same as compileSdkVersion,targetSdkVersion,buildToolsVersion in your root build.gradle file. Voila!!!

It built a successfull build apk with gradle assembleRelease.