Phonegap Android Cordova buid Failed

137 views
Skip to first unread message

shivsha...@gmail.com

unread,
Dec 30, 2014, 4:15:47 AM12/30/14
to eclipse-plugi...@googlegroups.com

Hi All,

I am trying build a Android project in Phonegap through command prompt. 

I have created the project -> added android platform -> added plugins -> and trying to build it. I am not changing anything. 

 

I have installed Android SDK manager API10,11,17,19,20,21 and updated.

 

Basically the error pointing to my "CordovaLib\src" @JavascriptInterface. Why is this, Where do i am missing.

I have pasted the last 3 error on "Cordova build" command and i have attached the error Document.

 

Please Help..

 

[javac] F:\My stuffs\Android 22-11-2014 compllete\apps\Audio\platforms\android\CordovaLib\src\org\apache\cordova\IceCreamCordovaWebViewClient.java:85: error: cannot find symbol

[javac]         return android.os.Build.VERSION.SDK_INT >= android.os.Build.

VERSION_CODES.KITKAT && "content".equals(uri.getScheme());

[javac]

^

[javac]   symbol:   variable KITKAT

[javac]   location: class VERSION_CODES

[javac] F:\My stuffs\Android 22-11-2014 compllete\apps\Audio\platforms\android\CordovaLib\src\org\apache\cordova\IceCreamCordovaWebViewClient.java:101: error: cannot find symbol

[javac]             case android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH:

[javac]                                                ^

[javac]   symbol:   variable ICE_CREAM_SANDWICH

[javac]   location: class VERSION_CODES

[javac] F:\My stuffs\Android 22-11-2014 compllete\apps\Audio\platforms\android\CordovaLib\src\org\apache\cordova\IceCreamCordovaWebViewClient.java:102: error: cannot find symbol

[javac]             case android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_M

R1:

[javac]                                                ^

[javac]   symbol:   variable ICE_CREAM_SANDWICH_MR1

[javac]   location: class VERSION_CODES

[javac] Note: Some input files use or override a deprecated API.

[javac] Note: Recompile with -Xlint:deprecation for details.

[javac] 38 errors

[javac] 3 warnings

 

BUILD FAILED

F:\My stuffs\Android 22-11-2014 compllete\adt-bundle-windows-x86-20140702\sdk\tools\ant\build.xml:601: The following error occurred while executing this line:

F:\My stuffs\Android 22-11-2014 compllete\adt-bundle-windows-x86-20140702\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:

F:\My stuffs\Android 22-11-2014 compllete\adt-bundle-windows-x86-20140702\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details

 

Total time: 4 seconds

 

F:\My stuffs\Android 22-11-2014 compllete\apps\Audio\platforms\android\cordova\node_modules\q\q.js:126

throw e;

^

Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,F:\My stuffs\Android22-11-2014 compllete\apps\Audio\platforms\android\build.xml,-Dout.dir=ant-build

,-Dgen.absolute.dir=ant-gen

Error: cmd: Command failed with exit code 8

at ChildProcess.whenDone (C:\Users\shiv\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)

at ChildProcess.emit (events.js:98:17)

at maybeClose (child_process.js:766:16)

at Process.ChildProcess._handle.onexit (child_process.js:833:5)

 

Thanks and Regards,

Shivashankar R G

 

Error.txt
Reply all
Reply to author
Forward
0 new messages