2014-08-28 63 views
0

我第一次使用cordova 3.5,嘗試構建Android的apk與它,但在構建apk包得到下面的錯誤得到像下面的錯誤,無法找到哪裏錯了,任何人都可以告訴我哪裏錯了?謝謝。 -pre編譯: [回波]設置罐子路徑:/用戶/ zinch- CN /項目/學校圖書館/平臺/機器人/ CordovaLib /螞蟻構建/ classes.jar科爾多瓦3.5搭建Android獲取錯誤與命令行上的mac

-compile: 
[javac] Compiling 6 source files to /Users/zinch-cn/Project/SchoolLibrary/platforms/android/ant-build/classes 
[javac] /Users/zinch-cn/Project/SchoolLibrary/platforms/android/src/com/zinch/SchoolLibrary/.java:25: <identifier> expected 
[javac] public class extends CordovaActivity 
[javac]   ^
[javac] 1 error 

BUILD FAILED 
/usr/local/Cellar/android-sdk/23.0.2/tools/ant/build.xml:720: The following error occurred while executing this line: 
/usr/local/Cellar/android-sdk/23.0.2/tools/ant/build.xml:734: Compile failed; see the compiler error output for details. 

Total time: 4 seconds 

/Users/zinch-cn/Project/SchoolLibrary/platforms/android/cordova/node_modules/q/q.js:126 
       throw e; 
        ^
Error code 1 for command: ant with args: debug,-f,/Users/zinch-cn/Project/SchoolLibrary/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen 
Error: /Users/zinch-cn/Project/SchoolLibrary/platforms/android/cordova/run: Command failed with exit code 8 
at ChildProcess.whenDone (/usr/local/lib/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:756:16) 
at Process.ChildProcess._handle.onexit (child_process.js:823:5) 
+0

它看起來像擴展CordovaActivity的類中沒有類名 – bhowden 2014-08-28 14:32:44

回答

1

下面是示例錯誤在創建科爾多瓦新項目,

cordova create abc com.example.abc ABC 

ABC將用相同com.example.abc,如果該項目將創建沒有錯誤,當你建立的應用程序會顯示奇怪的錯誤像上面。希望這可以幫助某人。