我在Android上Gimbal SDK工作,我得到這個錯誤在搖籃建立信息工作:利用萬向SDK
Error:duplicate files during packaging of APK D:\Kowshik\AndroidStudioProjects\SMSBlocker\app\build\outputs\apk\app-debug-unaligned.apk
Path in archive: META-INF/notice.txt
Origin 1: D:\Kowshik\AndroidStudioProjects\SMSBlocker\app\libs\spring-android-core-1.0.1.RELEASE.jar
Origin 2: D:\Kowshik\AndroidStudioProjects\SMSBlocker\app\libs\spring-android-rest-template-1.0.1.RELEASE.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/notice.txt'
}
}
Error:Execution failed for task ':app:packageDebug'.
> Duplicate files copied in APK META-INF/notice.txt
File 1: D:\Kowshik\AndroidStudioProjects\SMSBlocker\app\libs\spring-android-core-1.0.1.RELEASE.jar
File 2: D:\Kowshik\AndroidStudioProjects\SMSBlocker\app\libs\spring-android-core-1.0.1.RELEASE.jar
Information:BUILD FAILED
Information:Total time: 5.75 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
從我可以推斷,我可以看到,有一個重複spring-android-core-1.0.1.RELEASE.jar
,對吧?但在我的文件結構中,它很好,它們沒有重複。有沒有解決這個問題的方法?
另外,如果有人有興趣,我創建了[鏈接]關於萬向SDK爲接近另一篇文章(http://danieleagle.com/blog/2014/11/gimbal-sdk-proximity-beacons-深潛/)。這是對Proximity Gimbal SDK的深入研究。 – 2014-11-06 15:48:18