[英]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 set to True. minifyEnabled 设置为 True。 Not working -
不工作 -
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.