AlbertBrand / react-native-android-tablayout

React Native Android TabLayout native component
141 stars 29 forks source link

Flash back android directly #4

Closed mvpdream closed 8 years ago

mvpdream commented 8 years ago

image

AlbertBrand commented 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.

mvpdream commented 8 years ago

apply plugin: "com.android.application"

/**

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') }

AlbertBrand commented 8 years ago

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.

AlbertBrand commented 8 years ago

Can you run gradle dependencies --configuration compile from the android/app dir and paste its output?

mvpdream commented 8 years ago

Sorry, I just started study the RN is not understand android native Java code

AlbertBrand commented 8 years ago

I'm quite sure that the problem is fixed using the workaround mentioned above. Can I close this?