Error trying to generate apk ionic v2

1
  

Command:

 ionic build android --prod

Environment Variables:

  

ANDROID_HOME

C:\Android\sdk
  

CLASSPATH

.;%JAVA_HOME%
  

JAVA_HOME

C:\Program Files (x86)\Java\jdk1.8.0_121
  

Path

;%JAVA_HOME%\bin
  

Error:

Error: Could not find gradle wrapper within Andorid SDK. Might need to update your Android SDK.
Looked here: C:\Users\Octávio Barbosa\AppData\Local\Android\sdk\tools\templates\gradle\wrapper

Does anyone know what it can be?

    
asked by anonymous 07.02.2017 / 16:41

1 answer

2

Good afternoon, my friend,

I've also had this problem with IONIC2, I think you have to configure the following configured system variables :

JAVA_HOME : C: \ Program Files \ Java \ jdk1.8.0_65 (Location of your JDK)

ANDROID_HOME : C: \ programs \ android-sdk-eclipse-adt-m4 \ sdk (Location of the android SDK) >

In your PATH, you will join the paths that already exist

PATH : C: \ Program Files \ nodejs \;% JAVA_HOME% \ bin;% ANDROID_HOME% \ tools;% ANDROID_HOME% \ platform-tools;

Note : In the path variable, above, I am concatenating the paths of the node, java and android tools and platform

    
07.02.2017 / 19:08