1
我創建了一個Android庫並將其上傳到GitHub並使用jitpack.io使用相同的庫。現在我爲GPS定位創建了一個模塊庫。直到,除非我添加GPSlibrary它工作正常。一旦我在gradle文件中添加Gps庫。 Jitpack庫顯示錯誤。添加兩個庫在Android工作室中創建錯誤
我可能會錯過什麼/做錯了什麼?
應用gradle這個:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.ari"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.github.Aritra1704:UtilitiesJitPackLib:1.03' --> My jitpacklibrary
compile 'com.afollestad.material-dialogs:core:0.8.5.9'
compile 'com.google.android.gms:play-services:9.0.1'
compile 'com.google.android.gms:play-services-ads:9.0.1'
compile 'com.google.android.gms:play-services-auth:9.0.1'
compile 'com.google.android.gms:play-services-gcm:9.0.1'
compile project(':gpsutilities') --> My GPS library
}
什麼錯誤? –
無論我在活動中使用的文件和方法如何,它都不從我的jitpack庫中導入。 我確實需要我的jitpack庫gps庫,所以我也加入了gpslibrary。因爲在同一個項目中導入了兩次導致衝突的可能性? – Ari
這是一個編譯錯誤?我對嗎? –