React native android 将react native与现有应用程序集成
stetho:stetho okhttp:1.2.0 与我的现有项目组件发生冲突的原因:React native android 将react native与现有应用程序集成,react-native-android,stetho,React Native Android,Stetho,stetho:stetho okhttp:1.2.0 与我的现有项目组件发生冲突的原因: compile 'com.facebook.stetho:stetho:1.4.2' 错误: Error:Module 'com.facebook.stetho:stetho-okhttp:1.2.0' depends on one or more Android Libraries but is a jar app.gradle: apply plugin: 'com.android.applicat
compile 'com.facebook.stetho:stetho:1.4.2'
错误:
Error:Module 'com.facebook.stetho:stetho-okhttp:1.2.0' depends on one or more Android Libraries but is a jar
app.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "cn.titaandroid.im"
minSdkVersion 16
targetSdkVersion 23
versionCode 2017021610
versionName '0.9.0'
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
signingConfigs {
config {
storeFile file('titaandroid.keystory')
storePassword '123456'
keyAlias 'tita'
keyPassword '123456'
}
}
sourceSets {
main {
jni.srcDirs = []
jniLibs.srcDirs = ['libs']
}
}
packagingOptions {
exclude 'AndroidManifest.xml'
}
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.config //for release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
signingConfig signingConfigs.config //for release
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
dexOptions {
javaMaxHeapSize "4g"
}
productFlavors {
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:support-v4:21.0.3'
compile project(':Recognizer')
compile project(':contactcard')
compile project(':sticker')
compile 'com.android.support:multidex:1.0.1'
compile 'com.facebook.stetho:stetho:1.4.2'
compile files('libs/MiPush_SDK_Client_3_1_2.jar')
compile project(':IMKit')
compile project(':CallKit')
compile project(':RedPacket')
compile 'com.facebook.react:react-native:+'
}
apply plugin: 'com.google.gms.google-services'
}
作为一种解决办法,我刚刚降级到'com.facebook.stetho:stetho:1.3.1'并开始工作