मैं निर्भरता के रूप में एक अलग ऐप का उपयोग करने वाली एक ऐप संकलित करने का प्रयास कर रहा हूं लेकिन जब मैं इस लाइब्रेरी से संदर्भ मॉड्यूल संकलित करता हूं तो मुझे कई "त्रुटि: पैकेज मौजूद नहीं है" और गलती से "त्रुटि: प्रतीक वर्ग नहीं मिल सकता" संदेश। निम्नलिखित मेरी दो बिल्ड फाइलें हैं।निर्भरता के रूप में अलग ऐप का उपयोग करते समय पैकेज मौजूद नहीं है
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 11
targetSdkVersion 19
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
packagingOptions {
exclude 'AndroidManifest.xml'
exclude 'resources.arsc'
exclude 'classes.dex'
}
}
dependencies {
repositories {
mavenCentral()
}
compile 'com.android.support:support-v4:+'
compile 'com.google.code.gson:gson:2.2.2'
compile 'com.google.android.gms:play-services:+'
compile 'com.actionbarsherlock:actionbarsherlock:[email protected]'
compile 'com.android.support:support-v4:+'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'se.emilsjolander:stickylistheaders:2.+'
compile 'com.googlecode.libphonenumber:libphonenumber:+'
compile files('libs/crashlytics.jar')
compile files('libs/httpclient-4.2.3.jar')
compile files('libs/libphonenumber-5.9.jar')
compile files('libs/mobileservices-0.2.0-javadoc.jar')
compile files('libs/mobileservices-0.2.0.jar')
compile files('libs/stringtotime-1.0.4.jar')
compile files('libs/urbanairship-lib-2.0.2.jar')
compile 'com.github.chrisbanes.actionbarpulltorefresh:extra-abs:+'
compile files('libs/FlurryAnalytics-4.0.0.jar')
compile 'com.squareup.picasso:picasso:2.3.3'
compile project(':wheel')
}
निर्भरता Gradle:
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "kankan.wheel"
minSdkVersion 5
targetSdkVersion 7
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
किसी को भी मदद/इस से पहले का अनुभव कर सकते हैं? एंड्रॉइड स्टूडियो कक्षा में किसी भी मुद्दे को हाइलाइट नहीं करता है और मैं संदर्भित संकुलों के माध्यम से ctrl + क्लिक कर सकता हूं, जिसका अर्थ है कि यह सही ढंग से स्थापित है ...
धन्यवाद!
बहुत अच्छा काम किया। आपका बहुत बहुत धन्यवाद! – User24231
@ डोगे का मतलब है 'com.android.application'? –
हां, यह नया प्लगइन नाम है। जब मैंने मूल रूप से उत्तर लिखा था तो प्लगइन को 'एंड्रॉइड' – Doge