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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容