简体   繁体   English

Proguard minifyEnabled True 应用程序未按预期工作

[英]Proguard minifyEnabled True app not working as expected

Every time I've tried to turn minifyEnabled to True, it doesn't work as expected, it doesn't show any fatal errors or crashes.每次我尝试将 minifyEnabled 设置为 True 时,它都无法按预期工作,它不会显示任何致命错误或崩溃。

minifyEnabled set to False. minifyEnabled 设置为 False。 Working copy -工作副本 - minifyEnabled 设置为 False。工作副本

minifyEnabled set to True. minifyEnabled 设置为 True。 Not working -不工作 - minifyEnabled 设置为 True。不工作

Based on the above scenario, I couldn't figure out which methods or class the application has trouble running it.基于上述情况,我无法确定应用程序运行时遇到问题的方法或 class。

import androidx.appcompat.app.AppCompatActivity;
import com.auth0.android.jwt.Claim;
import com.auth0.android.jwt.JWT;
import com.example.mediminder.API.ISearchAPI;
import com.example.mediminder.API.RetrofitClient;
import com.example.mediminder.R;
import com.example.mediminder.models.LoginResponse;

import io.reactivex.disposables.CompositeDisposable;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;


 private void validateOTP() {
    Log.d(TAG, "validateOTP: pressed");
    Log.d(TAG, "validateOTP: token: " + token);
    String otp = etOTP.getText().toString();
    Call<LoginResponse> call = myAPI.validateotp(id, otp);

    call.enqueue(new Callback<LoginResponse>() {
        @Override
        public void onResponse(Call<LoginResponse> call, Response<LoginResponse> response) {
            LoginResponse loginResponse = response.body();

If you have used any library, add the proguard rules for those specific libraries to behave as expected.如果您使用过任何库,请为这些特定库添加 proguard 规则以使其按预期运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Proguard minifyEnabled对于调试构建是真的,不适用于前Lollipop - Proguard minifyEnabled true for debug build, not working on pre-Lollipop 启用Proguard文件后,默认主题不起作用(minifyEnabled为true) - Default theme is not working after enable Proguard file(minifyEnabled true) 当 minifyEnabled 设置为 true 时,Rxjava3 无法按预期工作 - Rxjava3 not working as expected when minifyEnabled set to true Android proguard minifyEnabled true + multidex =错误 - Android proguard minifyEnabled true + multidex = error 将minifyEnabled设置为true时,应用程序崩溃 - App crashes on setting minifyEnabled to true 应用程序崩溃与毕加索和minifyEnabled真实 - App crashing with Picasso and minifyEnabled true Android Proguard:minifyEnabled为true会自动将混淆设置为true吗? - Android Proguard : Is minifyEnabled true automatically setting obfuscation to true? proguard android studio 中的错误,无法使用 minifyenabled true 构建我的项目 - Error in proguard android studio, cant build my project with minifyenabled true 使用 minifyEnabled true 执行我的应用程序时出现 ClassCastException - ClassCastException while executing my app with minifyEnabled true minifyEnabled true 导致发布应用程序崩溃 - minifyEnabled true causes release app crash
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM