2013-11-27 104 views
0


我只想看看sencha建築師3,並創建了Touch 2.3項目「地點」。在iOS中啓動Web和模擬效果很好,但原生Android編譯失敗:Sencha建築師3 Android模擬失敗

[INF] -before-native-package: 
[INF] 
[INF] -native-package-mobile: 
[INF]  [echo] Running default mobile packager config. 
[INF]  [echo] 
[INF]  [echo]  Processing Mobile Packager config file 
[INF]  [echo]   config: /Applications/XAMPP/xamppfiles/htdocs/MyApp/packager.json 
[INF]  [echo]   inputPath: /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native/MyApp 
[INF]  [echo]   outputPath: /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json 
[INF]  [echo] Running mobile packager action run on file /Applications/XAMPP/xamppfiles/htdocs/MyApp/packager.temp.json 
[ERR] 
Error: Project folder '/Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json' is not empty. Please consider using 'android update' instead. 
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/src/com/mycompany/myAppID 
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/src/com/mycompany/myAppID/STActivity.java 
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res 
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/bin 
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/libs 
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/values 
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/values/strings.xml 
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/layout 
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/layout/main.xml 
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/AndroidManifest.xml 
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/build.xml 
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/proguard-project.txt 
sh: ant: command not found 
"/Users/markus/android-sdks/tools/android" create project --target android-7 --name MyApp --activity STActivity --path "/Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/" --package com.mycompany.myAppID 
Could not run ant with error: 32512 
Failed to package application 

[ERR] 
[ERR] BUILD FAILED 
[ERR] com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7 
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Nati 
[ERR] veMethodAccessorImpl.java:57) 
[ERR] 
[ERR] Total time: 7 seconds 
[ERR] The following error occurred while executing this line: 
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/build-impl.xml:422: The following error occurred while executing this line: 
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:108: The following error occurred while executing this line: 
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:98: The following error occurred while executing this line: 
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:7: com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7 

回答

2

運行

$ sudo的LN -s在/ usr/local/bin目錄/螞蟻在/ usr /斌/螞蟻

這將使建築師3檢測到您的安裝。

這是如果您使用Mac並使用自制軟件安裝您的螞蟻