![](/img/trans.png)
[英]Proguard minifyEnabled true for debug build, not working on pre-Lollipop
[英]Proguard minifyEnabled True app not working as expected
每次我尝试将 minifyEnabled 设置为 True 时,它都无法按预期工作,它不会显示任何致命错误或崩溃。
minifyEnabled 设置为 False。 工作副本 -
基于上述情况,我无法确定应用程序运行时遇到问题的方法或 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();
如果您使用过任何库,请为这些特定库添加 proguard 规则以使其按预期运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.