赞
踩
进入系统管理,插件管理
需要安装的插件有:Android Lint Plugin,Gradle Plugin,Subversion Plug-in
打开全局工具配置界面
设置jdk配置
设置gradle配置
设置maven配置
设置完成保存
到这里整个打包环境就搭建完毕了。
进入系统设置
创建打包任务
构建输出报错
* What went wrong: A problem occurred configuring project ':zdb_android'. > You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 25.0.2, Android SDK Platform 25]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
没有安装[Android SDK Build-Tools 25.0.2, Android SDK Platform 25].
查看所有sdk
android list sdk --all
按照序号更新
android update sdk -u --all --filter 15,48
Installing Archives:
Preparing to install archives
Downloading Android SDK Build-tools, revision 25.0.2
Installing Android SDK Build-tools, revision 25.0.2
Installed Android SDK Build-tools, revision 25.0.299%)
Downloading SDK Platform Android 7.1.1, API 25, revision 3
Installing SDK Platform Android 7.1.1, API 25, revision 3
Installed SDK Platform Android 7.1.1, API 25, revision 396%)
Done. 2 packages installed.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。