项目中Gradle版本升级到4.4后,项目构建时,每次出现红色的警告信息: WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be removed at the end of 2018 Affected Modules: MyCorn-MyCorn 复制代码 但本地项目代码中compile都已经完成了implementation,警告信息依然出现. 一…
每次升级Android Studio时,一般情况下Gradle版本的也会相应的升级,我之前Android Studio 3.0.1.Gradle 是4.1升级后为:Android Studio 3.1.2.Gradle 为4.4. 升级完成后提示警告信息:Configuration 'compile' is obsolete and has been replaced with 'implementation'.  如下图所示: 在Android Studio3.0开始的时候就将 compile…
报错截图: 问题原因:compile会被在2018年底取消,会被imlementation替代,所以会报这个警告,解决警告的方式就是换成 imlementation 就好了 解决方法: 在 app 的 Gradle 中: compile 改为 implementation androidTestCompile 改为 androidTestImplementation testCompile 改为 testImplementation 这样替换了过时的,再重新编译即可.…
点击报错信息中的app, 按照提示,修改compile 为 implementation 再次同步即可 结果…
1.替换 compile为implementation. 2.file->invalidate caches 或者build中的clear…
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://d.android.com/r/tools/task-configuration-avoidance.REASON: It i…
android Studio 中打开react-native项目的android文件夹 在sync的过程中 发生warning: WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'. RN 版本:0.58 buildToolsVersion = "28.0.3"minSdkVersion = 16compileS…
想要编译别人的RN项目,还是要踩踩坑才能走上正轨啊,分享下我试过多种方法后最喜欢的方法(其实是因为我多次用VS Code编译都是以失败而告终,所以才选择的studio) 注意:这一步是你的开发环境都安装配置好了,RN项目可以正常创建啦 1,从GitHub上下载一个RN项目,解压到文件夹 2,用Android studio打开项目下的xxx/android文件 (1)打开后,首先打开Terminal敲入命令行:npm install 下载安装所需要的组件 (2)接下来成功后在Terminal命令行…
原文:https://blog.csdn.net/xiariluoxue/article/details/80050700 AndroidStudio.gradle.buildToolsVersion的关系 Android Studio gradle插件版本和gradle版本对应关系 Android Studio 升级为3.1遇到的问题 问题一:Configuration ‘compile’ is obsolete and has been replaced with ‘implementati…
AndroidStudio升到最新版本(3.1.2)之后   暂时发现的需要大家注意的地方 1.androidstudio3无法导入moudle? 例如:我写了一个简单的项目,需要导入一个第三方的moudle,我导入: 因为AS升级之后,没有突出颜色的变化(变黑),所以这时候没有完成自定导入,当我添加依赖的时候都找不到此moudle,找到setting.gradle也没有看到. 解决办法:在setting.gradle中手动写入 2.这时候build一下,发现还是报错 Configuration…