bennyskydp 2015-04-27 02:21 采纳率: 100%
浏览 3658
已采纳

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 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

  • 写回答

3条回答 默认 最新

  • 清水依恋成 2015-04-27 02:48
    关注

    给你一个思路:
    java调用ndk那里确保是按照so路径引入,避免在同一个线程实例中重复引入2次。
    你的android-sdk使用的api版本控制一下,看看你的mainfest.xml配置文件是不是你发布的版本和你配置的版本api-level不一致。
    你开发的ide工具不知道是不是eclipse-adt工具,看看jdk是不是oracle-sun的标准jdk,不要使用open-jdk。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 (SQL语句|查询结果翻了4倍)
  • ¥15 Odoo17操作下面代码的模块时出现没有'读取'来访问
  • ¥50 .net core 并发调用接口问题
  • ¥15 网上各种方法试过了,pip还是无法使用
  • ¥15 用verilog实现tanh函数和softplus函数
  • ¥15 Hadoop集群部署启动Hadoop时碰到问题
  • ¥15 求京东批量付款能替代天诚
  • ¥15 slaris 系统断电后,重新开机后一直自动重启
  • ¥15 QTableWidget重绘程序崩溃
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊