Information:Gradle tasks [:centralAsia:assembleDebug]
:centralAsia:preBuild UP-TO-DATE
:centralAsia:preDebugBuild UP-TO-DATE
:centralAsia:compileDebugNdk UP-TO-DATE
:centralAsia:checkDebugManifest
:centralAsia:preReleaseBuild UP-TO-DATE
:imageLoader_Library:compileLint
:imageLoader_Library:copyReleaseLint UP-TO-DATE
:imageLoader_Library:mergeReleaseProguardFiles UP-TO-DATE
:imageLoader_Library:preBuild UP-TO-DATE
:imageLoader_Library:preReleaseBuild UP-TO-DATE
:imageLoader_Library:checkReleaseManifest
:imageLoader_Library:prepareReleaseDependencies
:imageLoader_Library:compileReleaseAidl UP-TO-DATE
:imageLoader_Library:compileReleaseRenderscript UP-TO-DATE
:imageLoader_Library:generateReleaseBuildConfig UP-TO-DATE
:imageLoader_Library:generateReleaseAssets UP-TO-DATE
:imageLoader_Library:mergeReleaseAssets UP-TO-DATE
:imageLoader_Library:generateReleaseResValues UP-TO-DATE
:imageLoader_Library:generateReleaseResources UP-TO-DATE
:imageLoader_Library:packageReleaseResources UP-TO-DATE
:imageLoader_Library:processReleaseManifest UP-TO-DATE
:imageLoader_Library:processReleaseResources UP-TO-DATE
:imageLoader_Library:generateReleaseSources UP-TO-DATE
:imageLoader_Library:compileReleaseJava UP-TO-DATE
:imageLoader_Library:processReleaseJavaRes UP-TO-DATE
:imageLoader_Library:packageReleaseJar UP-TO-DATE
:imageLoader_Library:compileReleaseNdk UP-TO-DATE
:imageLoader_Library:packageReleaseJniLibs UP-TO-DATE
:imageLoader_Library:packageReleaseLocalJar UP-TO-DATE
:imageLoader_Library:packageReleaseRenderscript UP-TO-DATE
:imageLoader_Library:bundleRelease UP-TO-DATE
:pullToRefresh_library:compileLint
:pullToRefresh_library:copyReleaseLint UP-TO-DATE
:pullToRefresh_library:mergeReleaseProguardFiles UP-TO-DATE
:pullToRefresh_library:preBuild UP-TO-DATE
:pullToRefresh_library:preReleaseBuild UP-TO-DATE
:pullToRefresh_library:checkReleaseManifest
:pullToRefresh_library:prepareReleaseDependencies
:pullToRefresh_library:compileReleaseAidl UP-TO-DATE
:pullToRefresh_library:compileReleaseRenderscript UP-TO-DATE
:pullToRefresh_library:generateReleaseBuildConfig UP-TO-DATE
:pullToRefresh_library:generateReleaseAssets UP-TO-DATE
:pullToRefresh_library:mergeReleaseAssets UP-TO-DATE
:pullToRefresh_library:generateReleaseResValues UP-TO-DATE
:pullToRefresh_library:generateReleaseResources UP-TO-DATE
:pullToRefresh_library:packageReleaseResources UP-TO-DATE
:pullToRefresh_library:processReleaseManifest UP-TO-DATE
:pullToRefresh_library:processReleaseResources UP-TO-DATE
:pullToRefresh_library:generateReleaseSources UP-TO-DATE
:pullToRefresh_library:compileReleaseJava UP-TO-DATE
:pullToRefresh_library:processReleaseJavaRes UP-TO-DATE
:pullToRefresh_library:packageReleaseJar UP-TO-DATE
:pullToRefresh_library:compileReleaseNdk UP-TO-DATE
:pullToRefresh_library:packageReleaseJniLibs UP-TO-DATE
:pullToRefresh_library:packageReleaseLocalJar UP-TO-DATE
:pullToRefresh_library:packageReleaseRenderscript UP-TO-DATE
:pullToRefresh_library:bundleRelease UP-TO-DATE
:centralAsia:prepareCentralAsiaImageLoader_LibraryUnspecifiedLibrary UP-TO-DATE
:centralAsia:prepareCentralAsiaPullToRefresh_libraryUnspecifiedLibrary UP-TO-DATE
:centralAsia:prepareDebugDependencies
:centralAsia:compileDebugAidl UP-TO-DATE
:centralAsia:compileDebugRenderscript UP-TO-DATE
:centralAsia:generateDebugBuildConfig UP-TO-DATE
:centralAsia:generateDebugAssets UP-TO-DATE
:centralAsia:mergeDebugAssets UP-TO-DATE
:centralAsia:generateDebugResValues UP-TO-DATE
:centralAsia:generateDebugResources UP-TO-DATE
:centralAsia:mergeDebugResources UP-TO-DATE
:centralAsia:processDebugManifest UP-TO-DATE
:centralAsia:processDebugResources UP-TO-DATE
:centralAsia:generateDebugSources UP-TO-DATE
:centralAsia:compileDebugJava UP-TO-DATE
:centralAsia:preDexDebug UP-TO-DATE
:centralAsia:dexDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/handmark/pulltorefresh/library/BuildConfig;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
Error:Execution failed for task ':centralAsia:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 9.163 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
給你一個思路:
java調用ndk那裡確保是按照so路徑引入,避免在同一個線程實例中重復引入2次。
你的android-sdk使用的api版本控制一下,看看你的mainfest.xml配置文件是不是你發布的版本和你配置的版本api-level不一致。
你開發的ide工具不知道是不是eclipse-adt工具,看看jdk是不是oracle-sun的標准jdk,不要使用open-jdk。