2015-07-03 43 views
1

我搜索了年齡,以確定爲什麼我的谷歌端點模塊導致意外_.._ EXCEPTION當我試圖在模擬器上運行應用程序。Android Studio谷歌端點導致UNEXPECTED_TOP_LEVEL_EXCEPTION

研究表明庫不止一次被調用。但是,我找不到任何明顯的錯誤關於這一點:

我的應用程序的build.gradle:

compile project(path: ':kk_endpoint', configuration: 'android-endpoints') 

compile'com.android.support:appcompat-v7:22.2.0' 
compile 'com.google.android.gms:play-services:7.5.0' 
compile 'com.android.support:design:22.2.0' 
compile 'com.android.support:recyclerview-v7:22.2.0' 
compile 'com.android.support:cardview-v7:22.2.0' 
compile 'de.hdodenhof:circleimageview:1.3.0' 
compile 'com.squareup.picasso:picasso:2.3.2' 

我的谷歌端點模塊的build.gradle:

appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.19' 
compile 'com.google.appengine:appengine-endpoints:1.9.19' 
compile 'com.google.appengine:appengine-endpoints-deps:1.9.19' 
compile 'javax.servlet:servlet-api:2.5' 
compile 'com.googlecode.objectify:objectify:5.1.1' 
compile 'com.ganyo:gcm-server:1.0.2' 

顯然沒有被調用在面上兩次。造成這個問題的原因是什麼?

回答

1

後的研究時間,我發現這個問題是從番石榴LIB來了,所有我需要做的是排除lib目錄下:

compile (project(path: ':kk_endpoint', configuration: 'android-endpoints')) { 
exclude(module: 'guava-jdk5') 
} 

請注意括號必須嚴格按照高於或億韓元」工作。

compile project(path: ':kk_endpoint', configuration: 'android-endpoints'){ 
exclude(module: 'guava-jdk5')} 

不起作用。 我希望這可以幫助別人節省時間