Ionic build is not working after installing android studio 3.0.1

I don’t know, what I screwed up here. I am unable to run android build

sh-3.2# cordova clean android
ANDROID_HOME=/Users/satya/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
(node:10513) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]
(node:10513) [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.

My ionic info is

sh-3.2# ionic info

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.7
Cordova Platforms  : android 6.4.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.6.0

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.2 
Node              : v8.6.0
npm               : 5.3.0 
OS                : macOS High Sierra
Xcode             : Xcode 9.2 Build version 9C40b 

Environment Variables:

ANDROID_HOME : /Users/satya-medkumo/Library/Android/sdk

Misc:

backend : legacy

Did you install locally Gradle too? Since Android Studio >= 3, this is mandatory in order to build your app.

2 Likes

Hey @reedrichards,

Thanks, I was not knowing this. I just installed gradle and it worked well.

Thanks a lot for your help. +1

1 Like

Cool!

I didn’t know neither, @Sujan12 solved one of my issue by telling me to install Gradle too :wink: