关于 kotlinForAndroid 和 lambda 的环境搭建
来源:互联网 发布:网络病毒软件下载 编辑:程序博客网 时间:2024/04/29 18:33
app: build.gradle
buildscript { ext.support_version = '23.1.1' ext.kotlin_version = '1.1.2' ext.anko_version = '0.8.2' repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" }}allprojects { repositories { jcenter() }}task clean(type: Delete) { delete rootProject.buildDir}
model :build.gradle
plugins { //lambda id "me.tatarka.retrolambda" version "3.2.4"}apply plugin: 'com.android.application'//butterknifeapply plugin: 'android-apt'//kotlinapply plugin: 'kotlin-android'apply plugin: 'kotlin-android-extensions'android { compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { applicationId "com.tesiro.tesiro" minSdkVersion 18 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' } } //lambda compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 }}dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') 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'
compile 'com.jakewharton:butterknife:8.1.0' apt 'com.jakewharton:butterknife-compiler:8.1.0'//kotlin compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"}repositories { mavenCentral()}
阅读全文
0 0
- 关于 kotlinForAndroid 和 lambda 的环境搭建
- lambda环境搭建
- 【笔记】【环境搭建】测试JDK8的Lambda表达式
- android studio 项目中使用lambda的环境搭建
- 关于libevent的环境搭建和编译使用问题
- 关于开发springmvc和mybatis的环境搭建
- 关于java和python的环境搭建问题
- 关于工作环境的搭建
- 关于android环境的搭建。
- 关于SSH环境的搭建
- 关于PHPstorm的环境搭建
- 关于ionic的环境搭建
- 关于svn服务器配置和环境搭建
- 关于LINQ 和lambda表达式
- Lambda 和 SQL 关于对 Null情况的查询
- 关于lambda表达式和插入迭代器的一些说明
- 关于C#中Lambda和'函数指针'的简单认识
- 关于php开发环境的搭建
- DOMContentLoaded和onload事件区别和兼容
- 【技能库】-- java.util.regex.Pattern 正则提取括号中的内容{} () [](249)
- 安卓源码收集
- sphinx +laravel+sngrl\SphinxSearch 实时增量索引总结
- robot framework万能的evaluate
- 关于 kotlinForAndroid 和 lambda 的环境搭建
- 涛哥推荐
- java 从ftp服务器上 读取文件内容
- 自定义消息的封装与解析
- js年月日判断
- java JSP中的include的两种用法
- iOS开发-调试网络限速(真机和模拟器)
- 【OpenCV】摄像机标定+畸变校正
- Lua与C的交互(0)