Naomi Gloria
Naomi Gloria

Reputation: 41

Wrapper properties fail to load while building android apk, ionic 2 project

I am trying to build an apk for my Ionic 2 project and when I run Ionic build android i get an error:

Exception in thread "main"  java.lang.runtime exception could not load wrapper properties from "C:\Users\Naomi Gloria\CampoApp\platforms\android\gradle\wrapper" 

I have set the environment for JAVA_HOME and ANDROID_HOME and followed all other requirements but i still get the error.

I am not using a network with proxy so I do not think that could be the problem.

I am using the following versions:

Cordova 6.5.0 -- npm 3.10.0 -- ionic 2.2.1 -- node 6.10.0 -- android 6.1.0

on Windows 7 professional

Screenshot

Can someone please help?

Upvotes: 4

Views: 2318

Answers (2)

phemyadex
phemyadex

Reputation: 11

I had the same error, what I did was to delete the android folder in the platform folder and I ran ionic cordova build android. Hope this help. Thank you

Upvotes: 1

Ak-Wahid
Ak-Wahid

Reputation: 67

Most likely this issue is due to java doesn't have enough run time memory to compile actually i have face the same issue on Windows 7 so after searching a lot i found solution. and it just to increase Run time memory of JAVA.

Hope you know the process of increasing java run time memory. If not please let me know.

Upvotes: 0

Related Questions