AndroidGradle插件仅支持kotlin-android-extensionsGradle插件版本1.6.20及更高版本。ReactNative
创始人
2024-10-08 02:00:22
0

在项目的根目录下找到/build.gradle文件,将下面的代码添加到文件的开头:

buildscript { ext.kotlin_version = '1.6.20' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "com.android.support:multidex:1.0.3" classpath 'com.google.gms:google-services:4.3.10' } }

所有 Gradle 版本都应该对应版本1.6.20或更高版本,例如:

apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'

dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "androidx.appcompat:appcompat:1.3.1" implementation "com.google.android.material:material:1.4.0" implementation 'androidx.constraintlayout:constraintlayout:2.1.0' implementation 'com.facebook.react:react-native:0.62.2' }

之后重新编译项目即可。

相关内容

热门资讯

透视线上!wepokerplu... 透视线上!wepokerplus脚本,wepoker脚本(透视)实用技巧(有挂辅助)wepokerp...
透视美元局!wepoker黑侠... 透视美元局!wepoker黑侠破解,德州圈脚本,德州论坛(有挂攻略);1、这是跨平台的wepoker...
透视透视挂!wepoker手机... 透视透视挂!wepoker手机助手,wepoker透视底牌脚本(透视)微扑克教程(有挂介绍)1、在w...
透视好友!we poker游戏... 透视好友!we poker游戏下,hhpoker有后台操作吗,系统教程(有挂方法)1、hhpoker...
透视挂!wpk德州局透视,购买... 透视挂!wpk德州局透视,购买的wpk辅助在哪里下载,透明教程(有挂秘籍)购买的wpk辅助在哪里下载...
透视软件!wepoker有辅助... 透视软件!wepoker有辅助吗,wepoker底牌透视(透视)2025版教程(有挂解密)1.wep...
透视好友房!wpk辅助器,红龙... 透视好友房!wpk辅助器,红龙poker辅助,可靠技巧(有挂技巧)1、全新机制【红龙poker辅助软...
透视最新!wepoker私人局... 透视最新!wepoker私人局透视方法,wepoker手机插件(透视)解密教程(有挂教程)1、wep...
透视模拟器!德州hhpoker... 透视模拟器!德州hhpoker脚本,xpoker辅助神器,总结教程(有挂攻略);德州hhpoker脚...
透视实锤!wepoker免费透... 透视实锤!wepoker免费透视,有没有人wepoker(透视)透明挂教程(有挂揭秘);1)wepo...