Skip to content

开启混淆后出现问题 #120

@ddxl123

Description

@ddxl123
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in D:\flutter_projects\yida\build\app\outputs\mapping\debug\missing_rules.txt.
ERROR: R8: Missing class okhttp3.Cache (referenced from: void com.tencent.open.a.e.a(java.lang.String))
Missing class okhttp3.Call (referenced from: com.tencent.open.a.g com.tencent.open.a.e.a(java.lang.String, java.lang.String) and 2 other contexts)
Missing class okhttp3.ConnectionSpec (referenced from: void com.tencent.open.a.e.a(java.lang.String))
Missing class okhttp3.FormBody$Builder (referenced from: com.tencent.open.a.g com.tencent.open.a.e.a(java.lang.String, java.util.Map))
Missing class okhttp3.FormBody (referenced from: com.tencent.open.a.g com.tencent.open.a.e.a(java.lang.String, java.util.Map))
Missing class okhttp3.Interceptor$Chain (referenced from: okhttp3.Response com.tencent.open.a.e$a.intercept(okhttp3.Interceptor$Chain))
Missing class okhttp3.Interceptor (referenced from: void com.tencent.open.a.e.a(java.lang.String) and 1 other context)
Missing class okhttp3.MediaType (referenced from: com.tencent.open.a.g com.tencent.open.a.e.a(java.lang.String, java.util.Map, java.util.Map))
Missing class okhttp3.MultipartBody$Builder (referenced from: com.tencent.open.a.g com.tencent.open.a.e.a(java.lang.String, java.util.Map, java.util.Map))
Missing class okhttp3.MultipartBody (referenced from: com.tencent.open.a.g com.tencent.open.a.e.a(java.lang.String, java.util.Map, java.util.Map))
Missing class okhttp3.OkHttpClient$Builder (referenced from: void com.tencent.open.a.e.a(long, long) and 2 other contexts)
Missing class okhttp3.OkHttpClient (referenced from: okhttp3.OkHttpClient com.tencent.open.a.e.a and 5 other contexts)
Missing class okhttp3.Request$Builder (referenced from: okhttp3.Response com.tencent.open.a.e$a.intercept(okhttp3.Interceptor$Chain) and 3 other contexts)
Missing class okhttp3.Request (referenced from: okhttp3.Response com.tencent.open.a.e$a.intercept(okhttp3.Interceptor$Chain) and 3 other contexts)
Missing class okhttp3.RequestBody (referenced from: com.tencent.open.a.g com.tencent.open.a.e.a(java.lang.String, java.util.Map) and 1 other context)
Missing class okhttp3.Response (referenced from: okhttp3.Response com.tencent.open.a.d.a and 6 other contexts)
Missing class okhttp3.ResponseBody (referenced from: void com.tencent.open.a.d.<init>(okhttp3.Response, int) and 1 other context)
Missing class okhttp3.internal.Version (referenced from: void com.tencent.open.a.e.a(java.lang.String))

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyDebugWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
   > Compilation failed to complete

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 4s
Error: Gradle task assembleDebug failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions