2013-11-27 100 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并使用自制软件安装您的蚂蚁