![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android studio 错误
Dragonlongbo
不必仰望月亮,你即星辰之光!
展开
-
Android Studio升级3.6之后AndroidManifest.xml设置activity方向screenOrientation报错
Expecting 'android:screenOrientation="unspecified"' or '"fullSensor"' for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices这...原创 2020-04-06 18:35:20 · 1164 阅读 · 1 评论 -
记一次关于 Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7的错误
关于 Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7的错误在高版本的kotlin插件需要将下面的引用implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"替换成implementation "org.jetbrains.kotlin...原创 2020-04-06 16:18:57 · 2991 阅读 · 0 评论 -
WARNING: Module 'common' has variant 'release' selected, but the module ''app'' depends on variant '
记一次as警告WARNING: Module 'common' has variant 'release' selected, but the module ''app'' depends on variant 'debug'发生原因:由于修改了主工程的productFlavors,sync后as报错。分析看报错信息,表示由于common模块选择了release变体,但是主工程...原创 2020-04-03 16:57:56 · 1295 阅读 · 0 评论 -
Gradle sync failed: Already disposed: Module: '***'的一种解决方案
工程中的一个module迁移成单独的库,用submodule的方式去管理。但代码同步下来之后sync的时候就子工程就报错了,错位信息是Gradle sync failed: Already disposed: Module: '子工程名字',大概的意思就是这个Module已经被处理好了没有必要再二次处理。经分析查资料后发现这主要就是Androidstudio的的缓存造成的,这时候你可以尝试删除...原创 2020-03-26 11:36:16 · 992 阅读 · 0 评论 -
Android运行时异常:API 'variant.getJavaCompiler()' is obsolete and has been replaced with 'variant........
报错详细信息如下WARNING: API 'variant.getJavaCompiler()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.It will be removed at the end of 2019.For more information, see https://...原创 2020-03-26 11:34:24 · 1554 阅读 · 0 评论 -
导入三方时出现: appComponentFactory 错误
根据错误提示,在manifest中添加tools:replace="android:appComponentFactory" 后依然报错解决方法<applicationtools:replace="android:appComponentFactory" //除了这行之外 android:appComponentFactory="任意字符" />//还要加上这一...原创 2020-03-16 18:46:35 · 942 阅读 · 0 评论 -
Android Studio错误提示Duplicate class android.support.v4.app.INotificationSideChannel found
# 需要在gradle.properties中添加下面两行代码# 这是因为混合支持库。通过添加这些行选择androidX作为支持库android.useAndroidX=trueandroid.enableJetifier=true原创 2020-03-16 18:45:34 · 6464 阅读 · 4 评论 -
关于android studio 出现Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 的原因及解决办法
最近一段时间打开Android studio在build过程中总会出现以下错误。Error:Execution failed for task ':app:preDebugAndroidTestBuild'.> Conflict with dependency 'com.android.support:support-annotations' in project ':app'. R...原创 2018-12-06 11:22:07 · 1442 阅读 · 0 评论 -
记一次android studio错误Error:(51, 13) Failed to resolve: org.xwalk:xwalk_core_library:latest.release
项目中使用了crosswalk作为浏览器内核,今天在没有连接网络的情况下打开了项目,然后就出现了这个情况,然后怎么样也都无法编译成功了。Error:(51, 13) Failed to resolve: org.xwalk:xwalk_core_library:latest.release实际上是在无网络的情况下,android studio设置了 gradle 设为离线编译模式。原创 2017-09-05 09:41:53 · 3863 阅读 · 0 评论