我正在尝试将我的 Sencha 应用程序打包成一个 .apk 文件。这是配置文件的外观:
{
"applicationName":"NotesApp",
"applicationId":"NotesApp",
"iconName":"icon.png",
"versionString":"1.0",
"outputPath":"~/wamp/www/NotesAppPackage",
"webAppPath":"~/wamp/www/NotesApp",
"configuration":"Debug",
"platform":"Android",
"deviceType":"Universal",
"certificatePath":"~/Users/Vishrut/Desktop/my-release-key.keystore",
"certificateAlias":"alias_name",
"sdkPath":"~/Program Files (x86)/Android/android-sdk-windows",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
我收到以下错误:
[INFO] Generated app.json
[INFO] Embedded microloader into index.html
[INFO] Packaging your application as a native app...
[INFO] ""~/Program Files (x86)/Android/android-sdk-windows/tools/android" create
project --target android-7 --name NotesApp --activity STActivity --path "C:\wam
p\www\NotesApp\build\native/" --package NotesApp"
Failed to create android project
Failed to package application
[ERROR] The system cannot find the path specified.
我检查了路径,它们看起来还不错。ApplicationID 可以是任何东西,对吧?指定路径的方式是否存在问题(即不允许使用空格等)?
我正在安装android api 7,然后再试一次。