Android开发Bug及问题集合

1、提醒压制问题

03-27 13:28:17.728 782-1511/? V/NotificationService: notifications are disabled by AppOps for com.chaoyang.cy

03-27 13:28:17.728 782-1511/? E/NotificationService: Suppressing toast from package com.chaoyang.cy by user request.

这个问题是由于用户关闭了app的提醒功能,若关闭,toast将不能正常显示。可到应用通知中选择开启即可

2、NDK版本兼容问题

Error:Execution failed for task ':EaseUI:transformNativeLibsWithStripDebugSymbolForRelease'.> java.lang.NullPointerException (no error message)

修改编译版本即可。

3、缓存及时处理问题

InvalidVirtualFileAccessException: Accessing invalid virtual file: file://D:/Scott/Android/Studio/MyApp/app/build/intermediates/classes/debug/com/scott/myapp/R$styleable.class; original:134487; found:-

重启android studio,重新编译项目

4、gradle版本兼容问题

Error:Failed to complete Gradle execution.

Cause:

The version of Gradle you are using (3.3) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later versions.

快捷键:Ctrl +Shift +Alt +s 弹出对话框,点击项目Project 第一个中将gradle版本改为3.5

你可能感兴趣的:(Android开发Bug及问题集合)