Open mikebridge opened 5 years ago
This looks like everything is using 28.0.0
./gradlew -q dependencies app:dependencies --configuration debugAndroidTestCompileClasspath
+--- com.facebook.android:facebook-android-sdk:4.40.0
| +--- com.facebook.android:facebook-core:4.40.0
| | +--- com.parse.bolts:bolts-android:1.4.0
| | | +--- com.parse.bolts:bolts-tasks:1.4.0
| | | \--- com.parse.bolts:bolts-applinks:1.4.0
| | | \--- com.parse.bolts:bolts-tasks:1.4.0
| | +--- com.android.support:support-annotations:27.0.2 -> 28.0.0
| | \--- com.android.support:support-core-utils:27.0.2 -> 28.0.0 (*)
| +--- com.facebook.android:facebook-common:4.40.0
| | +--- com.facebook.android:facebook-core:4.40.0 (*)
| | +--- com.android.support:support-v4:27.0.2 -> 28.0.0
| | | +--- com.android.support:support-compat:28.0.0 (*)
| | | +--- com.android.support:support-media-compat:28.0.0
| | | | +--- com.android.support:support-annotations:28.0.0
| | | | +--- com.android.support:support-compat:28.0.0 (*)
| | | | \--- com.android.support:versionedparcelable:28.0.0 (*)
| | | +--- com.android.support:support-core-utils:28.0.0 (*)
| | | +--- com.android.support:support-core-ui:28.0.0 (*)
| | | \--- com.android.support:support-fragment:28.0.0 (*)
| | +--- com.android.support:appcompat-v7:27.0.2 -> 28.0.0 (*)
| | +--- com.android.support:cardview-v7:27.0.2 -> 28.0.0
| | | \--- com.android.support:support-annotations:28.0.0
| | +--- com.android.support:customtabs:27.0.2 -> 28.0.0
| | | +--- com.android.support:support-compat:28.0.0 (*)
| | | +--- com.android.support:support-annotations:28.0.0
| | | +--- com.android.support:interpolator:28.0.0 (*)
| | | +--- com.android.support:collections:28.0.0 (*)
| | | \--- com.android.support:support-core-ui:28.0.0 (*)
| | \--- com.google.zxing:core:3.3.0
Adding this to app/build.gradle
seems to disable the check. I don't know if there's a better way to address this:
allprojects {
// ...
afterEvaluate {
if (getPlugins().hasPlugin('android') ||
getPlugins().hasPlugin('android-library')) {
println name // for debugging
configure(android.lintOptions) {
abortOnError false
}
}
}
}
This wouldn't have to be the solution, but it works for me:
dependencies {
implementation "com.android.support:appcompat-v7:${SUPPORT_LIB_VERSION}"
//this lines
implementation "com.android.support:cardview-v7:${SUPPORT_LIB_VERSION}"
implementation "com.android.support:customtabs:${SUPPORT_LIB_VERSION}"
implementation "com.android.support:support-media-compat:${SUPPORT_LIB_VERSION}"
implementation "com.android.support:support-v4:${SUPPORT_LIB_VERSION}"
//
api 'com.facebook.react:react-native:+' // support react-native-v0.22-rc+
api "com.facebook.android:facebook-android-sdk:${FACEBOOK_SDK_VERSION}"
}
Make sure you have this defined in your build.gradle:
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 19
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
}
same +1
I am compiling with
./gradlew build
, with gradle 4.10.3 on Windows and Mac and I'm getting the following error:I thought this could be worked around by overriding with the compatibility libraries for 28.0.0, but this doesn't seem to work:
I tried the suggested method to disable the warning but it continues to appear even with the following:
Environment
React Native Environment Info: System: OS: Windows 10 CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz Memory: 3.01 GB / 15.93 GB Binaries: Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338