问题描述
- android studio 代码运行部署到手机出现以下这些问题要怎么解决
-
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 FilesJavajdk1.7.0_75binjava.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。
解决方案二:
build.gradle提供一下吧。
你的imageloader没有问题吧?
解决方案三:
试试
defaultConfig {
multiDexEnabled true
}
时间: 2024-09-30 23:50:28