Closed mvpdream closed 8 years ago
Support design library dependency is missing. It should be included via gradle dependency management. Please show your android/app/build.gradle
contents.
apply plugin: "com.android.application"
/**
react-native bundle
with the correct arguments during the Android buildapply from: "react.gradle"
line.
*apply from: "react.gradle"
android { compileSdkVersion 23 buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.myproject"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
buildTypes {
release {
minifyEnabled false // Set this to true to enable Proguard
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
} repositories { maven { url "https://jitpack.io" } }
dependencies { compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:0.17.+" compile project(':react-native-icons') compile project(':ReactNativeDropdownAndroid') compile project(':react-native-image-picker') compile project(':react-native-system-notification') compile project(':RNAlocation') compile project(':react-native-contacts') compile project(':react-native-dialogs') compile project(':reactdate') compile project(':ReactNativeCalendarAndroid') compile project(':react-native-sms-android') compile project(':react-native-android-circles') compile project(':react-native-datetime-picker') compile project(':react-native-android-tablayout') }
A workaround is to add compile 'com.android.support:design:23.0.1'
to the dependencies { ... } list.
I'm wondering why the deps of the tablayout are not loaded.
Can you run gradle dependencies --configuration compile
from the android/app
dir and paste its output?
Sorry, I just started study the RN is not understand android native Java code
I'm quite sure that the problem is fixed using the workaround mentioned above. Can I close this?