cordova - PhoneGap - Android build throws error - BUILD FAILED - \ant\build.xml:892 -


when try build android platform, getting below error , when searched fix found solution , tried same downloading different build tools didn't worked out , later after 2 days worked (not sure how was) , able execute build , again in sometime getting same error.

using phonegap 3.3.0

>phonegap build android    [phonegap] detecting android sdk environment...    [phonegap] using local environment    [phonegap] compiling android...    [error] error occurred while building android project.error executing "ant debug -f "c:\dev\phonegap\web-service\platforms\android\build.xml"": build failed    c:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:892: following error occurred while executing line:    c:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:894: following error occurred while executing line:    c:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:906: following error occurred while executing line:    c:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:284: null returned: 1     total time: 7 seconds 

rarely below error:

>phonegap build android [phonegap] detecting android sdk environment... [phonegap] using local environment [phonegap] compiling android... [error] error occurred while building android project. 

if run build command again throws first error.

thanks.

make sure android sdk location assign correctly in local.properties file.

# file automatically generated android tools. # not modify file -- changes erased! # # file must *not* checked version control systems, # contains information specific local configuration.  # location of sdk. used ant # customization when using version control system, please read # header note. sdk.dir=/applications/android-sdk 

enter image description here


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -