《OpenGL ES 2 for Android》第4章代码改用OpenGL ES 3实现 《OpenGL ES 2 for Android》第4章代码改用OpenGL ES 3实现 主要文件 -- AirHockeyActivity.java -- AirHockeyRender.java... 08月04日 热度3,976 度 发表评论 阅读全文
android 报错与解决方案记录 android 报错与解决方案记录 cannot resolve symbol 'NonNull' 解决方法:依赖中添加如下语句 compile 'com.android.support:suppor... 04月02日 热度3,766 度 发表评论 阅读全文
that new apps and app updates target API level 26 or higher解决方法 that new apps and app updates target API level 26 or higher解决方法 问题描述 最近因为平台要求,需要把targetSdkVersion从26... 03月27日 热度3,452 度 发表评论 阅读全文
Android Studio 3.1.2 报错 AAPT2 error: check logs for details Android Studio 3.1.2 报错 AAPT2 error: check logs for details 新导入项目的时候发生如下报错: 出现的原因 AAPT2和Gradle插件的bug... 01月15日 热度3,491 度 发表评论 阅读全文
Android Studio报错 Could not GET ‘xxxx/gradle/3.1.3/gradle-3.1.3pom1’ Android Studio报错 Could not GET 'xxxx/gradle/3.1.3/gradle-3.1.3pom1' 使用Andorid studio出现如下错误: Could no... 01月15日 热度3,768 度 发表评论 阅读全文
Bitmap.createScaledBitmap宽度不正确 Bitmap.createScaledBitmap宽度不正确 出错场景 使用Bitmap.createScaledBitmap()方法后,宽度为屏幕宽度,但是显示出来的图片的宽度跟屏幕宽度不一致。 出... 12月25日 热度3,303 度 发表评论 阅读全文
避免WebView.loadUrl启动系统浏览器 避免WebView.loadUrl启动系统浏览器 在Android程序中使用WebView控件,有时会启动系统浏览器去打开网页。这是我们不需要的。 解决办法 只需做如下处理即可。 引入WebViewC... 11月20日 热度3,570 度 发表评论 阅读全文
Android net::ERR_CLEARTEXT_NOT_PERMITTED Android net::ERR_CLEARTEXT_NOT_PERMITTED 出错场景: 在Android APP中使用WebView控件后,访问网络,出现如下报错: 解决方案 在AndroidM... 11月20日 热度7,887 度 发表评论 阅读全文