Android Studio
andrew_style
目前主要从事android app的开发,有外包项目的兄弟也可以找我。
展开
-
package xxx does not exist
package xxx does not exist原创 2022-12-15 15:55:45 · 614 阅读 · 0 评论 -
our project has set `android.useAndroidX=true`, but configuration `:app:debugRuntimeClasspath` still
AGPBI: {"kind":"warning","text":"Your project has set `android.useAndroidX=true`, but configuration `:app:debugRuntimeClasspath` still contains legacy support libraries, which may cause runtime issues.\nThis behavior will not be allowed in Android Gradle p原创 2022-12-02 12:14:12 · 3305 阅读 · 0 评论 -
Fragment简单实用易犯错
Must specify unique android:id, android:tag, or have a parent with an id for原创 2022-11-19 23:45:00 · 117 阅读 · 0 评论 -
mac AS配置JDK
在此做个记录,防止忘记原创 2022-04-12 23:52:52 · 483 阅读 · 0 评论 -
android:exported` when the corresponding component has an intent filter defined. See
报错信息:Error: android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See h原创 2021-08-18 19:06:00 · 1434 阅读 · 0 评论 -
The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER
Installation did not succeed.The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDERList of apks:[0] '/home/lwd/Documents/Android-Studio/AndFix-init/app/build/outputs/apk/release/app-release.apk'Installation failed due to: 'null'.原创 2021-06-16 16:46:37 · 384 阅读 · 0 评论 -
Android Studio:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
上个礼拜五app代码已经发布线上了,然后我把Window10的C盘做了下清理工作,因为C盘块满了。清理之后AS不能运行了,我重新安装了Android Studio,接着导入代码,发现编译报错,错误日志如下:原创 2021-06-16 11:38:31 · 2304 阅读 · 0 评论 -
Windows10 AS gradle乱码
乱码如下:原创 2021-06-16 11:29:19 · 331 阅读 · 0 评论 -
Activity class {} does not exist
今天上午从git上拉了代码编译,发现As报错,如下:11/04 11:11:47: Launching 'app' on HUAWEI ELS-AN00.$ adb shell am start -n "com.swap.space.zh3721.store/com.swap.space.zh3721.store.ui.welcom.WelcomeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHERE原创 2020-11-04 11:16:30 · 716 阅读 · 0 评论 -
Mac Android Studio 查看依赖包的关系
今天有个商户投诉app在4.4版本闪退,我自己试了下,日志如下:咋一看,是OkHttp3不兼容4.4版本的系统,去Okhttp官网看了相关的文档,说3.13.0之后不支持Android 5.0系统一下。当时我的想法就是使用旧版本,然后就把版本降低到3.12.12,编译运行,报错如下:一看就知道版本冲突了,但是项目使用这么多第三个的依赖库,如何分析是哪些依赖库使用了高版本的OkHttp3呢?经过度娘的帮助,终于用了如下命令解决了我的问题:./gradlew -q app:depend原创 2020-07-24 22:35:03 · 558 阅读 · 0 评论 -
Android Studio Updating Indices
今天上班后,检车As更新,然后更新了一个压缩包,大概1G左右,然后自动重启As,发现Updating Indices好久,重启了还是没有用,于是想到可能和缓存有关系,试了一下,解决了我的问题,在此记录下:...原创 2020-07-20 10:57:22 · 874 阅读 · 0 评论 -
Android Studio把依赖改成阿里巴巴的实现起飞
今天在家想给As安装个插件,结果打开As建个Android Demo代码,发现一直在下载,受不了这个等待的时间,把依赖的仓库改成阿里,下载速度很快,代码如下: repositories { maven { url 'https://maven.aliyun.com/repository/public' name 'repl...原创 2020-04-29 22:37:12 · 396 阅读 · 0 评论