Closed atom992 closed 8 years ago
@atom992 Can you give me a more detailed error log, and also your 2 build.gradle files?
ok the error:
Gradle 'CBL4RNDemo02' project refresh failed
Error:Configuration with name 'default' not found.
setting.gradle
//include ':app'
include ':ReactNativeDropdownAndroid', ':app', ':android'
project(':ReactNativeDropdownAndroid').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-dropdown-android/android')
build.gradle on the top level
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url "http://files.couchbase.com/maven2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
build.gradle on the app level
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.atom.cbl4rndemo02"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// workaround for "duplicate files during packaging of APK" issue
// see https://groups.google.com/d/msg/adt-dev/bl5Rc4Szpzg/wC8cylTWuIEJ
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
dependencies {
// compile project(':ReactNativeDropdownAndroid')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.fasterxml.jackson.core:jackson-core:2.5.0'
compile 'com.facebook.react:react-native:0.13.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':ReactNativeDropdownAndroid')
}
Sorry, I can't seem to find anything wrong with your config, and I tried using my component in a new react native project and it's still working fine. You may want to try creating new project and including each dependency to see where it goes wrong
On Tue, Nov 17, 2015 at 6:19 PM, atom992 notifications@github.com wrote:
ok the error:
Gradle 'CBL4RNDemo02' project refresh failed Error:Configuration with name 'default' not found.
setting.gradle
//include ':app' include ':ReactNativeDropdownAndroid', ':app', ':android' project(':ReactNativeDropdownAndroid').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-dropdown-android/android')
build.gradle on the top level
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { repositories { jcenter() maven { url "http://files.couchbase.com/maven2/" } } dependencies { classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
}
allprojects { repositories { jcenter() } }
build.gradle on the app level
apply plugin: 'com.android.application'
android { compileSdkVersion 23 buildToolsVersion "23.0.1"
defaultConfig { applicationId "com.example.atom.cbl4rndemo02" minSdkVersion 19 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
// workaround for "duplicate files during packaging of APK" issue // see https://groups.google.com/d/msg/adt-dev/bl5Rc4Szpzg/wC8cylTWuIEJ packagingOptions { exclude 'META-INF/ASL2.0' exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE' } }
dependencies { // compile project(':ReactNativeDropdownAndroid')
compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.fasterxml.jackson.core:jackson-core:2.5.0' compile 'com.facebook.react:react-native:0.13.0' compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':ReactNativeDropdownAndroid')
}
— Reply to this email directly or view it on GitHub https://github.com/chymtt/ReactNativeDropdownAndroid/issues/3#issuecomment-157341116 .
ok, Thanks,I will try.
@atom992 Did you resolve the issue? I'm currently experiencing the same.
Nevermind me, I'm tired, my issue was caused by the fact I did all of the linking steps without actually installing the package 🙃But now I'm encountering other issues.
After I add
in android/app/build.gradle I got this error.