Gradle缓存与原始库冲突?

时间:2016-04-25 15:19:17

标签: java android gradle jar

我正在构建一个Nativescript插件,用于android。当我添加Azure-Mobile-SDK(azure-mobile-android-3.1.0.jar)时,我收到以下错误:

:buildMetadata
Exception in thread "main" java.lang.IllegalArgumentException: Class com.microsoft.windowsazure.mobileservices.table.query.FunctionCallNodeMerger conflict: /Users/georgeedwards/.gradle/caches/modules-2/files-2.1/com.microsoft.azure/azure-mobile-android/3.1.0/ae6cfa31ba5a84141676d2d92fa64ca36c52d28/azure-mobile-android-3.1.0.jar and /Users/georgeedwards/Desktop/nativescript-plugin-seed-master/demo/node_modules/nativescript-yourplugin/platforms/android/azure-mobile-android-3.1.0.jar
    at com.telerik.metadata.ClassRepo.cacheJarFile(ClassRepo.java:21)
    at com.telerik.metadata.Builder.build(Builder.java:38)
    at com.telerik.metadata.Generator.main(Generator.java:44)
:buildMetadata FAILED

FAILURE: Build failed with an exception.

看起来缓存版本与我的原始库发生冲突并导致构建失败 - 为什么会发生这种情况?如何阻止它?

如果我在构建之前删除了Gradle缓存,我仍会遇到同样的问题。因此,似乎在构建过程中正在创建冲突的缓存副本......

更新,如果我没有在我的include.gradle中列出库,那么我会得到以下输出:

:buildMetadata
Skip com.microsoft.windowsazure.mobileservices.ApiJsonOperationCallback
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.MobileServiceClient
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.authentication.LoginManager
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.MobileServiceConnection
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.MobileServiceHttpClient
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.NextServiceFilterCallback
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.OkHttpClientFactory
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.OkHttpClientFactoryImpl
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.ServiceFilter
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.ServiceFilterRequest
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.ServiceFilterRequestImpl
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.ServiceFilterResponse
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.http.ServiceFilterResponseImpl
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.notifications.MobileServicePush
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.MobileServiceConflictExceptionJson
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.MobileServiceExceptionBase
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.MobileServiceJsonTable
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.MobileServicePreconditionFailedExceptionJson
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.MobileServiceTable
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.TableJsonQueryCallback
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.query.ExecutableJsonQuery
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.query.ExecutableQuery
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.serialization.DateSerializer
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.serialization.JsonEntityParser
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.serialization.LongSerializer
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.MobileServiceJsonSyncTable
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.MobileServiceSyncContext
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.MobileServiceSyncTable
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.localstore.MobileServiceLocalStore
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.localstore.SQLiteLocalStore
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.operations.AbstractTableOperation
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.operations.DeleteOperation
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.operations.LocalTableOperationProcessor
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.operations.RemoteTableOperationProcessor
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.operations.TableOperation
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.operations.TableOperationError
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.pull.IncrementalPullStrategy
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.pull.PullStrategy
    Error: java.lang.NullPxception
Skip com.microsoft.windowsazure.mobileservices.table.sync.queue.OperationQueue
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.synchandler.MobileServiceSyncHandler
    Error: java.lang.NullPointerException
Skip com.microsoft.windowsazure.mobileservices.table.sync.synchandler.SimpleSyncHandler
    Error: java.lang.NullPointerException
 'assets/metadata/treeNodeStream.dat'...
 'assets/metadata/treeStringsStream.dat'...
 'assets/metadata/treeValueStream.dat'...
:transformClassesWithDexForDebug

但它成功构建 - 任何想法为什么包含是一个问题?

0 个答案:

没有答案