内容简介:前端架构师使用angular JS作为框架,打包android APK。程序已经完成,需要使用自动编译功能来检测服务。问题一:JDK需要使用1.8,其他版本目前不支持。
背景
前端架构师使用angular JS作为框架,打包android APK。
程序已经完成,需要使用自动编译功能来检测服务。
问题
问题一:JDK需要使用1.8,其他版本目前不支持。
问题二:android-sdk安装问题
npm run build:android
build失败,提示:
…… Please install the Android build tools version 19.1.0 or higher. ……
这个主要是因为android-sdk安装的问题。android-sdk安装时,某些插件没有安装完整。
需要安装:
//安装platform-tools、platforms;android-28、build-tools;28.0.3插件 sdkmanager "platform-tools" "platforms;android-28"
问题三:缺少文件
提示:File ~/.android/repositories.cfg could not be loaded.
这个问题因为缺少文件导致。需要将文件创建即可。
问题四:缺少插件
Warning: Failed to find package build-tools
//查看所有的可用插件 sdkmanager --list
sdkmanager "build-tools;28.0.3"
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Building Social Web Applications
Gavin Bell / O'Reilly Media / 2009-10-1 / USD 34.99
Building a social web application that attracts and retains regular visitors, and gets them to interact, isn't easy to do. This book walks you through the tough questions you'll face if you're to crea......一起来看看 《Building Social Web Applications》 这本书的介绍吧!