cari

Rumah  >  Soal Jawab  >  teks badan

用android studio混淆报的错,这怎么弄呀?

Information:Gradle tasks [:gGcar_demo2:assembleRelease]
:base_library_pullToRefresh_chenyoca:compileLint
:base_library_pullToRefresh_chenyoca:copyReleaseLint UP-TO-DATE
:base_library_pullToRefresh_chenyoca:mergeReleaseProguardFiles UP-TO-DATE
:base_library_pullToRefresh_chenyoca:preBuild UP-TO-DATE
:base_library_pullToRefresh_chenyoca:preReleaseBuild UP-TO-DATE
:base_library_pullToRefresh_chenyoca:checkReleaseManifest
:base_library_pullToRefresh_chenyoca:prepareReleaseDependencies
:base_library_pullToRefresh_chenyoca:compileReleaseAidl UP-TO-DATE
:base_library_pullToRefresh_chenyoca:compileReleaseRenderscript UP-TO-DATE
:base_library_pullToRefresh_chenyoca:generateReleaseBuildConfig UP-TO-DATE
:base_library_pullToRefresh_chenyoca:generateReleaseAssets UP-TO-DATE
:base_library_pullToRefresh_chenyoca:mergeReleaseAssets UP-TO-DATE
:base_library_pullToRefresh_chenyoca:generateReleaseResValues UP-TO-DATE
:base_library_pullToRefresh_chenyoca:generateReleaseResources UP-TO-DATE
:base_library_pullToRefresh_chenyoca:packageReleaseResources UP-TO-DATE
:base_library_pullToRefresh_chenyoca:processReleaseManifest UP-TO-DATE
:base_library_pullToRefresh_chenyoca:processReleaseResources UP-TO-DATE
:base_library_pullToRefresh_chenyoca:generateReleaseSources UP-TO-DATE
:base_library_pullToRefresh_chenyoca:processReleaseJavaRes UP-TO-DATE
:base_library_pullToRefresh_chenyoca:compileReleaseJavaWithJavac UP-TO-DATE
:base_library_pullToRefresh_chenyoca:packageReleaseJar UP-TO-DATE
:base_library_pullToRefresh_chenyoca:compileReleaseNdk UP-TO-DATE
:base_library_pullToRefresh_chenyoca:packageReleaseJniLibs UP-TO-DATE
:base_library_pullToRefresh_chenyoca:packageReleaseLocalJar UP-TO-DATE
:base_library_pullToRefresh_chenyoca:packageReleaseRenderscript UP-TO-DATE
:base_library_pullToRefresh_chenyoca:bundleRelease UP-TO-DATE
:gGcar_demo2:preBuild UP-TO-DATE
:gGcar_demo2:preReleaseBuild UP-TO-DATE
:gGcar_demo2:checkReleaseManifest
:gGcar_demo2:preDebugBuild UP-TO-DATE
:gpuimgelibrary:compileLint
:gpuimgelibrary:copyReleaseLint UP-TO-DATE
:gpuimgelibrary:mergeReleaseProguardFiles UP-TO-DATE
:gpuimgelibrary:preBuild UP-TO-DATE
:gpuimgelibrary:preReleaseBuild UP-TO-DATE
:gpuimgelibrary:checkReleaseManifest
:gpuimgelibrary:prepareReleaseDependencies
:gpuimgelibrary:compileReleaseAidl UP-TO-DATE
:gpuimgelibrary:compileReleaseRenderscript UP-TO-DATE
:gpuimgelibrary:generateReleaseBuildConfig UP-TO-DATE
:gpuimgelibrary:generateReleaseAssets UP-TO-DATE
:gpuimgelibrary:mergeReleaseAssets UP-TO-DATE
:gpuimgelibrary:generateReleaseResValues UP-TO-DATE
:gpuimgelibrary:generateReleaseResources UP-TO-DATE
:gpuimgelibrary:packageReleaseResources UP-TO-DATE
:gpuimgelibrary:processReleaseManifest UP-TO-DATE
:gpuimgelibrary:processReleaseResources UP-TO-DATE
:gpuimgelibrary:generateReleaseSources UP-TO-DATE
:gpuimgelibrary:processReleaseJavaRes UP-TO-DATE
:gpuimgelibrary:compileReleaseJavaWithJavac UP-TO-DATE
:gpuimgelibrary:packageReleaseJar UP-TO-DATE
:gpuimgelibrary:compileReleaseNdk UP-TO-DATE
:gpuimgelibrary:packageReleaseJniLibs UP-TO-DATE
:gpuimgelibrary:packageReleaseLocalJar UP-TO-DATE
:gpuimgelibrary:packageReleaseRenderscript UP-TO-DATE
:gpuimgelibrary:bundleRelease UP-TO-DATE
:library:compileLint
:library:copyReleaseLint UP-TO-DATE
:library:mergeReleaseProguardFiles UP-TO-DATE
:library:preBuild UP-TO-DATE
:library:preReleaseBuild UP-TO-DATE
:library:checkReleaseManifest
:library:prepareReleaseDependencies
:library:compileReleaseAidl UP-TO-DATE
:library:compileReleaseRenderscript UP-TO-DATE
:library:generateReleaseBuildConfig UP-TO-DATE
:library:generateReleaseAssets UP-TO-DATE
:library:mergeReleaseAssets UP-TO-DATE
:library:generateReleaseResValues UP-TO-DATE
:library:generateReleaseResources UP-TO-DATE
:library:packageReleaseResources UP-TO-DATE
:library:processReleaseManifest UP-TO-DATE
:library:processReleaseResources UP-TO-DATE
:library:generateReleaseSources UP-TO-DATE
:library:processReleaseJavaRes UP-TO-DATE
:library:compileReleaseJavaWithJavac UP-TO-DATE
:library:packageReleaseJar UP-TO-DATE
:library:compileReleaseNdk UP-TO-DATE
:library:packageReleaseJniLibs UP-TO-DATE
:library:packageReleaseLocalJar UP-TO-DATE
:library:packageReleaseRenderscript UP-TO-DATE
:library:bundleRelease UP-TO-DATE
:multiimageselector:compileLint
:multiimageselector:copyReleaseLint UP-TO-DATE
:multiimageselector:preBuild UP-TO-DATE
:multiimageselector:preReleaseBuild UP-TO-DATE
:multiimageselector:checkReleaseManifest
:multiimageselector:preDebugAndroidTestBuild UP-TO-DATE
:multiimageselector:preDebugBuild UP-TO-DATE
:multiimageselector:preDebugUnitTestBuild UP-TO-DATE
:multiimageselector:preReleaseUnitTestBuild UP-TO-DATE
:multiimageselector:prepareComAndroidSupportSupportV42000Library UP-TO-DATE
:multiimageselector:prepareReleaseDependencies
:multiimageselector:compileReleaseAidl UP-TO-DATE
:multiimageselector:compileReleaseRenderscript UP-TO-DATE
:multiimageselector:generateReleaseBuildConfig UP-TO-DATE
:multiimageselector:generateReleaseAssets UP-TO-DATE
:multiimageselector:mergeReleaseAssets UP-TO-DATE
:multiimageselector:generateReleaseResValues UP-TO-DATE
:multiimageselector:generateReleaseResources UP-TO-DATE
:multiimageselector:mergeReleaseResources UP-TO-DATE
:multiimageselector:processReleaseManifest UP-TO-DATE
:multiimageselector:processReleaseResources UP-TO-DATE
:multiimageselector:generateReleaseSources UP-TO-DATE
:multiimageselector:processReleaseJavaRes UP-TO-DATE
:multiimageselector:compileReleaseJavaWithJavac UP-TO-DATE
:multiimageselector:extractReleaseAnnotations UP-TO-DATE
:multiimageselector:mergeReleaseProguardFiles UP-TO-DATE
:multiimageselector:packageReleaseJar UP-TO-DATE
:multiimageselector:compileReleaseNdk UP-TO-DATE
:multiimageselector:packageReleaseJniLibs UP-TO-DATE
:multiimageselector:packageReleaseLocalJar UP-TO-DATE
:multiimageselector:packageReleaseRenderscript UP-TO-DATE
:multiimageselector:packageReleaseResources UP-TO-DATE
:multiimageselector:bundleRelease UP-TO-DATE
:social_sdk_library_project:compileLint
:social_sdk_library_project:copyReleaseLint UP-TO-DATE
:social_sdk_library_project:mergeReleaseProguardFiles UP-TO-DATE
:social_sdk_library_project:preBuild UP-TO-DATE
:social_sdk_library_project:preReleaseBuild UP-TO-DATE
:social_sdk_library_project:checkReleaseManifest
:social_sdk_library_project:prepareReleaseDependencies
:social_sdk_library_project:compileReleaseAidl UP-TO-DATE
:social_sdk_library_project:compileReleaseRenderscript UP-TO-DATE
:social_sdk_library_project:generateReleaseBuildConfig UP-TO-DATE
:social_sdk_library_project:generateReleaseAssets UP-TO-DATE
:social_sdk_library_project:mergeReleaseAssets UP-TO-DATE
:social_sdk_library_project:generateReleaseResValues UP-TO-DATE
:social_sdk_library_project:generateReleaseResources UP-TO-DATE
:social_sdk_library_project:packageReleaseResources UP-TO-DATE
:social_sdk_library_project:processReleaseManifest UP-TO-DATE
:social_sdk_library_project:processReleaseResources UP-TO-DATE
:social_sdk_library_project:generateReleaseSources UP-TO-DATE
:social_sdk_library_project:processReleaseJavaRes UP-TO-DATE
:social_sdk_library_project:compileReleaseJavaWithJavac UP-TO-DATE
:social_sdk_library_project:packageReleaseJar UP-TO-DATE
:social_sdk_library_project:compileReleaseNdk UP-TO-DATE
:social_sdk_library_project:packageReleaseJniLibs UP-TO-DATE
:social_sdk_library_project:packageReleaseLocalJar UP-TO-DATE
:social_sdk_library_project:packageReleaseRenderscript UP-TO-DATE
:social_sdk_library_project:bundleRelease UP-TO-DATE
:gGcar_demo2:prepareComAndroidSupportSupportV42000Library UP-TO-DATE
:gGcar_demo2:preDebugUnitTestBuild UP-TO-DATE
:gGcar_demo2:preReleaseUnitTestBuild UP-TO-DATE
:gGcar_demo2:prepareComSquareupLeakcanaryLeakcanaryAndroidNoOp131Library UP-TO-DATE
:gGcar_demo2:prepareNewprojectBase_library_pullToRefresh_chenyocaUnspecifiedLibrary UP-TO-DATE
:gGcar_demo2:prepareNewprojectGpuimgelibraryUnspecifiedLibrary UP-TO-DATE
:gGcar_demo2:prepareNewprojectLibraryUnspecifiedLibrary UP-TO-DATE
:gGcar_demo2:prepareNewprojectMultiimageselectorUnspecifiedLibrary UP-TO-DATE
:gGcar_demo2:prepareNewprojectSocial_sdk_library_projectUnspecifiedLibrary UP-TO-DATE
:gGcar_demo2:prepareReleaseDependencies
:gGcar_demo2:compileReleaseAidl UP-TO-DATE
:gGcar_demo2:compileReleaseRenderscript UP-TO-DATE
:gGcar_demo2:generateReleaseBuildConfig UP-TO-DATE
:gGcar_demo2:generateReleaseAssets UP-TO-DATE
:gGcar_demo2:mergeReleaseAssets UP-TO-DATE
:gGcar_demo2:generateReleaseResValues UP-TO-DATE
:gGcar_demo2:generateReleaseResources UP-TO-DATE
:gGcar_demo2:mergeReleaseResources
:gGcar_demo2:processReleaseManifest UP-TO-DATE
:gGcar_demo2:processReleaseResources
warning: string 'pull_to_refresh_pull_label' has no default translation.
warning: string 'pull_to_refresh_refreshing_label' has no default translation.
warning: string 'pull_to_refresh_release_label' has no default translation.
:gGcar_demo2:generateReleaseSources
:gGcar_demo2:processReleaseJavaRes UP-TO-DATE
:gGcar_demo2:compileReleaseJavaWithJavac UP-TO-DATE
:gGcar_demo2:compileReleaseNdk UP-TO-DATE
:gGcar_demo2:compileReleaseSources UP-TO-DATE
:gGcar_demo2:proguardRelease
Note: there were 37 duplicate class definitions.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
Warning:there were 17 unresolved references to classes or interfaces.
         You may need to add missing library jars or update their versions.
         If your code works fine without the missing classes, you can suppress
         the warnings with '-dontwarn' options.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Exception while processing task 
java.io.IOException: Please correct the above warnings first.
    at proguard.Initializer.execute(Initializer.java:473)
    at proguard.ProGuard.initialize(ProGuard.java:233)
    at proguard.ProGuard.execute(ProGuard.java:98)
    at proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074)
    at com.android.build.gradle.tasks.AndroidProGuardTask.doMinification(AndroidProGuardTask.java:139)
    at com.android.build.gradle.tasks.AndroidProGuardTask$1.run(AndroidProGuardTask.java:115)
    at com.android.builder.tasks.Job.runTask(Job.java:48)
    at com.android.build.gradle.tasks.SimpleWorkQueue$EmptyThreadContext.runTask(SimpleWorkQueue.java:41)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:227)
    at java.lang.Thread.run(Thread.java:745)
:gGcar_demo2:dexRelease UP-TO-DATE
:gGcar_demo2:validateExternalOverrideSigning
:gGcar_demo2:packageRelease FAILED
Error:Execution failed for task ':gGcar_demo2:packageRelease'.
> Unable to compute hash of F:\android project\newproject\gGcar_demo2\build\intermediates\classes-proguard\release\classes.jar
Information:BUILD FAILED
Information:Total time: 13.703 secs
Information:1 error
Information:11 warnings
Information:See complete output in console
阿神阿神2772 hari yang lalu610

membalas semua(1)saya akan balas

  • 高洛峰

    高洛峰2017-04-17 16:28:21

    com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient

    题主是不是混淆了第三方包?一般第三方的jar包要加入忽略混淆,否则会有问题

    balas
    0
  • Batalbalas