English Version:
Android Dev Tools 5.7.1 is online now, You can download it from Google play: https://play.google.com/store/apps/details?id=cn.trinea.android.developertools , Features includes:
1. Fix some crashes on Android P
2. Fix the crash of getting network information
3. Fix crash when app exits
4. Fixed crash when viewing file contents
Error show:
java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion
1 |
<uses-library android:name="org.apache.http.legacy" android:required="false" /> |
https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p
Fix crash when show dialog after activity destrory
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
/** * Show dialog without Unable to add window BadTokenException * * @param context * @param dialog */ public static void show(Context context, android.support.v7.app.AlertDialog dialog) { if (context == null || dialog == null || (context instanceof Activity && ((Activity) context).isFinishing())) { return; } dialog.show(); } /** * Show dialog without Unable to add window BadTokenException * * @param context * @param dialog */ public static void show(Context context, AlertDialog dialog) { if (context == null || dialog == null || (context instanceof Activity && ((Activity) context).isFinishing())) { return; } dialog.show(); } |
中文版:
Android 开发助手 5.7.1 上线,可以从 Google Play、应用宝、酷安及各大商店下载,主要功能包含:
1. 修复部分 Android P 以上启动崩溃问题
2. 修复部分版本获取网络信息崩溃问题
3. 修复应用退出时崩溃问题
4. 修复部分 Android P 版本以上文件内容查看崩溃问题
繁体版:
Android 開發助手 5.7.1 上線,可以從 Google Play、應用寶、酷安及各大商店下載,主要功能包含:
1. 修複部分 Android P 以上啓動崩潰問題
2. 修複部分版本獲取網絡信息崩潰問題
3. 修複應用退出時崩潰問題
4. 修複部分 Android P 版本以上文件內容查看崩潰問題