Closed pravingaikwad07 closed 4 years ago
Solved this using this code snippet :
public static void showDebugDBAddressLogToast(Context context) {
if (BuildConfig.DEBUG) {
try {
Class<?> debugDB = Class.forName("com.amitshekhar.DebugDB");
Method getAddressLog = debugDB.getMethod("getAddressLog");
Object value = getAddressLog.invoke(null);
Toast.makeText(context, (String) value, Toast.LENGTH_LONG).show();
Log.d(TAG, "onCreate: Debug ++++++++ DATABASE ++++++++ URL: " + (String) value);
} catch (Exception ignore) {
}
}
}
While creating a signed apk I always get this error : package com.amitshekhar does not exist. Even I have disabled proguard. it works fine for debug builds.