当前位置:网站首页>Kotlin Android 环境搭建
Kotlin Android 环境搭建
2022-07-06 21:00:00 【志尊宝】
Kotlin Android 环境搭建
Android Studio 从 3.0(preview)版本开始将内置安装 Kotlin 插件。
打开 Settings ( Mac 为 Preferences) 面板,在右侧找到 Plugins 选项 (快捷键 Ctrl+, Mac 下为 command+),搜索框输入 “Kotlin” 查找,点击 Search in repositories(仓库中搜索),然后安装即可,安装完成之后需要重启 Android Studio。

创建新工程
选择 Start a new Android Studio project 或者 File | New project,大多数选项均有默认值 ,只需要按几次"回车"键即可。
Android Studio 3.0 在当前对话框中提供启用 Kotlin 支持的选项,勾选后可以跳过 "配置 Kotlin 工程(Configuring Kotlin in the project)"的步骤。
选择 Android 版本
选择需要创建的 Activity 样式:
在 Android Studio 3.0 中,可以选择使用 Kotlin 创建 activity,因此也不需要"将Java 代码转换为 Kotlin(Converting Java code to Kotlin)"这一步骤。
早期版本中则会先使用 Java 创建 activity,然后再使用自动转换工具 进行转换。
边栏推荐
- Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
- PIP download only, not install
- Probability formula
- 校招行测笔试-数量关系
- SSL certificate deployment
- 24. (ArcGIS API for JS) ArcGIS API for JS point modification point editing (sketchviewmodel)
- Baidu map JS development, open a blank, bmapgl is not defined, err_ FILE_ NOT_ FOUND
- 2022.6.28
- MySQL的索引
- 树莓派设置wifi自动连接
猜你喜欢

Search of linear table

Sub pixel corner detection opencv cornersubpix

Flink task exit process and failover mechanism

Variables, process control and cursors (MySQL)

What is the experience of maintaining Wanxing open source vector database

Flutter3.0了,小程序不止于移动应用跨端运行

VHDL implementation of single cycle CPU design

Mathematical induction and recursion

Basic concepts of Huffman tree

ubuntu20安装redisjson记录
随机推荐
Flutter3.0了,小程序不止于移动应用跨端运行
Ubuntu 20 installation des enregistrements redisjson
.net中 接口可以有默认实现了
QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
VHDL implementation of single cycle CPU design
C task expansion method
VHDL implementation of arbitrary size matrix addition operation
PHP lightweight Movie Video Search Player source code
Variables, process control and cursors (MySQL)
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
Codeworks 5 questions per day (1700 average) - day 7
QT 使用QToolTip 鼠标放上去显示文字时会把按钮的图片也显示了、修改提示文字样式
华为小米互“抄作业”
Code quality management
23.(arcgis api for js篇)arcgis api for js椭圆采集(SketchViewModel)
VHDL implementation of arbitrary size matrix multiplication
R数据分析:cox模型如何做预测,高分文章复现
亚像素级角点检测Opencv-cornerSubPix
Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications
[C language] question set of IX