本文主要是介绍Android studio 遇到的问题总结,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1、Error:Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing getSystemService to getApplicationContext().getSystemService [WifiManagerLeak]
参考:https://blog.csdn.net/jp_666/article/details/78713948
2、android studio打包错误Error:error: failed to read PNG signature: file does not start with PNG signature
参考:https://blog.csdn.net/niuzaiwenjie/article/details/81587475
3、Android 7.0以上系统获取以content开头的文件拿不到正确路径,报错column-data-does-not-exist
参考:https://blog.csdn.net/m13984458297/article/details/83578231
4、jar包深层调用
https://mp.csdn.net/postedit/90784496
5、Android之Error: 'L' is not a valid file-based resource name character解决办法
参考:https://blog.csdn.net/u011068702/article/details/72903195
6、found an invalid color
参考:https://blog.csdn.net/Trbuter/article/details/79272466
7、快捷键的使用
https://www.jianshu.com/p/c985e3d325c8
8.Error:Cause: services.gradle.org Consult IDE log for more details (Help | Show Log)
将gradle.properties文件装的
9.Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
解决:点击
然后全局搜索某个类。然后找到这个类在那些jar包中依赖。在中找到相应的jar包把依赖删掉。
10.Problems found loading plugins: Plugin "Android Games" was not loaded:
https://www.meiwen.com.cn/subject/jgdskqtx.html
11.Write access is allowed from event dispatch thread only
https://www.jianshu.com/p/ad99be756bdb
12、
Error while executing: am start -n "com.example.jl.upgreadbluetooth/com.example.jl.upgreadbluetooth.loadUpgreadActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.jl.upgreadbluetooth/.loadUpgreadActivity }
Error type 3
Error: Activity class {com.example.jl.upgreadbluetooth/com.example.jl.upgreadbluetooth.loadUpgreadActivity} does not exist.
Error while Launching activity
https://blog.csdn.net/weixin_34088583/article/details/86026599
13、
解决方法:
如果你有这类似的错误,可以尝试尝试。
把这种依赖方式
implementation project(path :':BaseTool')
改成这种就ok了
implementation project(':BaseTool')
14、 Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ.
dependencies {implementation fileTree(dir: 'libs', include: ['*.jar'])implementation 'com.android.support:appcompat-v7:26.1.0'implementation 'com.android.support.constraint:constraint-layout:1.1.2'testImplementation 'junit:junit:4.12'androidTestImplementation 'com.android.support.test:runner:1.0.2'androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'configurations.all {resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'}
}
https://www.cnblogs.com/DolphWang/p/9269511.html
15、Android studio的gradle版本升级到3.2.1后xml的属性不提示问题
gradle总的版本问题导致。
这篇关于Android studio 遇到的问题总结的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!