AndroidStudio kotlin配置安装插件File -> Settings -> Plugins -> Browse repositories -> 搜索 Kotlin gradle添加依赖Module的b
AndroidStudio kotlin配置
安装插件
File -> Settings -> Plugins -> Browse repositories -> 搜索 Kotlin
gradle添加依赖
Module的build.gradle
apply plugin: 'com.Android.application'apply plugin: 'kotlin-android'apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.lxs.kotlinconfig" minSdkVersion 15 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }} dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' testCompile 'junit:junit:4.12'<br> compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"} repositories { Maven {url 'Http://maven.aliyun.com/nexus/content/groups/public/'}}
--结束END--
本文标题: AndroidStudio kotlin配置详细介绍
本文链接: https://www.lsjlt.com/news/223097.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0