随笔分类 -  问题集合

一大波问题来袭
摘要:问题: Android项目的layout文件无法自动补全android:id等基础属性字段 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/a 阅读全文
posted @ 2023-01-17 16:27 swalka`x 阅读(310) 评论(0) 推荐(0) 编辑
摘要:android studio build/clean/rebuild项目时提示 Failed to delete some children. This might happen because a process has files open or has its working director 阅读全文
posted @ 2022-12-15 17:42 swalka`x 阅读(834) 评论(0) 推荐(0) 编辑
摘要:gradle编译问题: A problem occurred evaluating project ':login'. > Could not find method plugins() for arguments [build_2c31lk3groc7yx58a8uwub95i$_run_clos 阅读全文
posted @ 2022-12-09 01:44 swalka`x 阅读(2320) 评论(0) 推荐(0) 编辑
摘要:gradle报出问题 Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. Use '--warning-mode all' to show the individual 阅读全文
posted @ 2022-12-08 16:12 swalka`x 阅读(440) 评论(0) 推荐(0) 编辑
摘要:Android Studio真机调试,直接运行的Install Apk问题 Installation did not succeed. The application could not be installed: INSTALL_FAILED_TEST_ONLY 处理办法: 就在gradle.pr 阅读全文
posted @ 2022-12-07 02:05 swalka`x 阅读(48) 评论(0) 推荐(0) 编辑
摘要:首先我们创建一个类 public class TestClass { public static void main(String[] args) { String string = "{\"name\":\"Bingo\",\"age\":18}"; System.out.println("数据长 阅读全文
posted @ 2022-12-05 03:36 swalka`x 阅读(516) 评论(0) 推荐(0) 编辑
摘要:谷歌官方在22年3月发布的33.0.1版本的platform-tools包中移除了systrace 需要使用systrace需要币33.0.1更低的sdk包 下载SDK历史版本的方法: https://dl.google.com/android/repository/platform-tools_r 阅读全文
posted @ 2022-11-30 21:07 swalka`x 阅读(1833) 评论(0) 推荐(0) 编辑
摘要:Console报错:sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xmlcvc-complex-type.2.4.d: 发现了以元素 ‘d:skin’ 开头的无效内容。此处不应含有子元素。sdk\system-images... 阅读全文
posted @ 2015-11-26 10:03 swalka`x 阅读(4631) 评论(0) 推荐(1) 编辑
摘要:Activity的根视图是什么? Activity所谓的根视图,就是Activity的最底层的View,也就是在Acitivty创建的时候setContentView的时候传入的View。如何获取到Activity的根视图?ViewGroup decor = (ViewGroup) activ... 阅读全文
posted @ 2015-08-12 18:15 swalka`x 阅读(736) 评论(0) 推荐(0) 编辑