Open dreamdev21 opened 5 years ago
try with
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 27
supportLibVersion = "28.0.0"
Maybe remove: implementation 'com.android.support:design:27.1.0'
Maybe also upgrade your gradle?
https://github.com/react-native-community/react-native-share/issues/393
@maximus123123 comment solves the issue. Didn't need to remove the implementation. Bear in mind this change has to be made in node_modules/react-native-twitter-signin/android/build.gradle
It will need to be reapplied after a ./gradle clean
or node_modules deletion
try with
edit node_modules/react-native-twitter-signing/android/build.gradle
change the following lines
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2' #should match your project build tool for gradle
}
android {
compileSdkVersion 28 #should match your project compileSdkVersion
#Remove buildToolsVersion line
defaultConfig {
minSdkVersion 16 #should match your project minSdkVersion
targetSdkVersion 27 #should match your project targetSdkVersion
edit node_modules/react-native-twitter-signing/android/gradle/gradle.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
No need to hack node_modules
Adding this to android/build.gradle
fixed the issue for me
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android") && project.name == 'react-native-twitter-signin') {
android {
buildToolsVersion = "29.0.2"
minSdkVersion = 24
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "28.0.0"
}
}
}
}
Versions should match your top level versions
Hi, I have troble issue releasing ipa and apk files. On debug mode all works fine, but can't archive and releaase.
Here is my refs:
build.gradle
android/app/build.gradle
result
./gradlew assembleRelease --debug
Let me know if I have some wrong configuration.