ionic cordova add platform android
ionic cordova build android --release
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.9
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v8.11.1
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 7.2.1 Build version 7C1002
Environment Variables:
ANDROID_HOME : /Users/prakash/Documents/adt-bundle-mac-x86_64-20140321/sdk
Misc:
backend : pro
ANDROID_HOME=/Users/prakash/Documents/adt-bundle-mac-x86_64-20140321/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
studio
(node:1272) UnhandledPromiseRejectionWarning: CordovaError: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
at Object.module.exports.check_gradle (/Users/prakash/IONIC/NABH/platforms/android/cordova/lib/check_reqs.js:150:18)
at StudioBuilder.prepEnv (/Users/prakash/IONIC/NABH/platforms/android/cordova/lib/builders/StudioBuilder.js:216:23)
at Api.module.exports.run (/Users/prakash/IONIC/NABH/platforms/android/cordova/lib/build.js:154:20)
at /Users/prakash/IONIC/NABH/platforms/android/cordova/Api.js:342:43
at _fulfilled (/Users/prakash/IONIC/NABH/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/Users/prakash/IONIC/NABH/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/Users/prakash/IONIC/NABH/platforms/android/cordova/node_modules/q/q.js:816:13)
at /Users/prakash/IONIC/NABH/platforms/android/cordova/node_modules/q/q.js:624:44
at runSingle (/Users/prakash/IONIC/NABH/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/Users/prakash/IONIC/NABH/platforms/android/cordova/node_modules/q/q.js:125:13)
(node:1272) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1272) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/Users/prakash/gradle-4.1
但还是得到了上面的消息。请帮我摆脱困境。用ADV表示感谢。
我终于找到了自己问题的答案。
如果您已经安装了Android Studio并将环境变量设置为,
ANDROID_HOME : /Users/prakash/Documents/adt-bundle-mac-x86_64-20140321/sdk
然后需要下载gradle并将其包含到路径中。单击下面的链接获得手册。https://gradle.org/install
有人知道这个问题的原因吗?
安装平地机使用 安装后,使用命令 它给人以误差 还遵循以下步骤:http://exponential.io/blog/2015/03/30/install-gradle-on-ubuntu-linux/。但每次都给出同样的误差,无法前进。 请指出正在发生的错误
我创建Ionic2项目并添加诊断cordova插件,如下所示: 并且像这样添加android平台:
我正在尝试使用Maven插件将我的Gradle项目转换为Maven。我遵循这个SO链接,但当我运行Gradle安装命令时,我得到了以下错误 当我执行时,它没有显示安装。在这种情况下该怎么办?
本文向大家介绍gradle 安装,包括了gradle 安装的使用技巧和注意事项,需要的朋友参考一下 示例 要求:已安装Java JDK或JRE(Gradle3.x版本7或更高版本) 安装步骤: 从官方网站下载Gradle发行版 解压缩ZIP 添加GRADLE_HOME环境变量。该变量应指向上一步中解压缩的文件。 添加GRADLE_HOME/bin到您的PATH环境变量,以便您可以从命令行界面(CL
先决条件 下载 解压缩 环境变量 运行并测试您的安装 JVM选项