由于stbuild退出非零代码,无法从sencha touch生成android框架项目:7 [英] Unable to generate android skeleton project from sencha touch because of stbuild exited with non-zero code : 7

查看:156
本文介绍了由于stbuild退出非零代码,无法从sencha touch生成android框架项目:7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了sencha命令v4.0.4.84,sencha touch2.4.0-commercial,并安装了ruby 1.9.3p545并安装了sass和罗盘和ant并安装了jdk 1.7并设置了classpath,路径成功地在我的Windows 7 64位机器。



PS:我面临的问题是无法从sencha触摸示例项目中生成android框架项目。



已尝试的步骤


  1. 提取sencha touch 2.4.0 - 商品,然后在命令提示符下执行以下命令



    D:\firstapp\touch-2.4.0-commercial \FirstApp> sencha生成app firstApp .. / FirstApp


2)现在我已经从senchatouch复制了KitchenSink示例的文件,更换(粘贴)FirstApp中的内容。



3)然后执行以下命令刷新应用程序
sencha应用程序刷新



4)然后我创建了keytool,如下所示
C:\Program Files(x86)\Java\jjdk1.7\ bin> keytool -genkey -v -keystore D:\firstapp\touch-2.4.0-commercial\firstapp.keystore -alias san -keyalg RSA -keysize 2048 -validity 10000



5)现在我已经更新了packager.json的内容,然后我输入了证书路径,它的密码和别名以及android sdk路径。
Packager.json的内容

  {
/ **
* @cfg {String } applicationName
* @required
*这是应用程序的名称,该应用程序在安装应用程序时显示在设备上。在IOS上,这应该匹配
*您的应用程序在Apple Provisioning Portal中的名称。
* /
applicationName:我的应用程序,

/ **
* @cfg {String} applicationId
*这是名字您的应用程序的命名空间。在IOS上,这应该与Apple Provisioning Portal中的应用程序名称相匹配。
* /
applicationId:com.mycompany.myAppID,

/ **
* @cfg {String} bundleSeedId
* A Apple Provisioning Portal $ a $ b $ /
bundleSeedId:KPXFEPZ6EF,

/ **
* @cfg {String } versionString
* @required
*这是您的应用程序的版本。
* /
versionString:1.0,

/ **
* @cfg {Integer} versionCode
* @required
*这是您的应用程序的整数版本代码,或者您可以将其称为编号。仅用于Android版本。
* /
versionCode:1,

/ **
* @cfg {Object}图标
*对于iOS,请参考关于图标大小的文档:
* https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/IconMatrix.html
*
*对于Android,请参阅Google Launcher图标指南:
* http://developer.android.com/design/style/iconography.html
*
* iOS 7使用60,76,120, 152(设置应用程序为29,58; Spotlight搜索结果为40,80)。
* iOS 6.1及更早版本使用57,72,114,144(设置应用程序的29,58,iPhone上的Spotlight搜索结果; iPad和iPad上的Spotlight搜索结果为50和100)。
* Android使用36,48,72,96。
*如果您为Android打包,您可以忽略iOS图标,反之亦然。
* /
icon:{
60:resources / icons / Icon.png,
120:resources / icons / Icon @ 2x。 p $
76:资源/图标/图标〜ipad.png,
152:resources/icons/Icon~ipad@2x.png,
36:资源/图标/ Icon-36.png,
48:resources / icons / Icon-48.png,
96 ,
57:资源/图标/ Icon-57.png,
114:resources/icons/Icon-57@2x.png,
72:资源/图标/ Icon-72.png,
144:resources/icons/Icon-72@2x.png,
29:图标/ Icon-Small.png,
58:resources/icons/Icon-Small@2x.png,
40:resources / icons / Icon-Small-40。 p $
80:resources/icons/Icon-Small-40@2x.png,
50:resources / icons / Icon-Small-50.png,
100:resources/icons/Icon-Small-50@2x.png
},

/ **
* @cfg {String} inputPath
* @re quired
*相对于此配置文件,这是您的Sencha Touch 2应用程序的位置。
* /
inputPath:./,

/ **
* @cfg {String} outputPath
* @required
*这是保存的内置应用程序文件的位置。确保输出路径不在您的输入路径中,您可能会进入无限的递归复制
* /
outputPath:../ build /,

/ **
* @cfg {String}配置
* @required
*这是您的应用程序的配置。应该始终使用Debug,除非您将应用程序提交到在线
*存储区 - 在这种情况下应该指定Release。
* /
配置:调试,

/ **
* @cfg {String}平台
* @required
*这是您将要运行应用程序的平台。可用的选项是:
* - iOSSimulator
* - iOS
* - Android
* - AndroidEmulator
* /
platform:Android

/ **
* @cfg {String} deviceType
* @required
*这是您的应用程序将运行的设备类型。
*
*如果您正在开发Android,则不需要。
*
*可用的选项有:
* - iPhone
* - iPad
* - 通用
* /
deviceType:通用,

/ **
* @cfg {String} certificatePath
*这是您的证书的位置。
*当您正在开发Android或正在Windows上开发时,这是必需的。
* /
certificatePath:D:/firstapp/touch-2.4.0-commercial/testapp/my-release-key.keystore,

/ **
* @cfg {String} certificateAlias
*这是您的证书的名称。
*
*如果您没有在OSX上指定这个,我们将尝试使用applicationId自动为您查找证书。
*
*这只是一个简单的匹配器。例如,如果您的证书名称为iPhone开发人员:Robert Dougan(ABCDEFGHIJ),则您可以将
*放入iPhone开发人员。
*
*在Windows上使用certificatePath时,不需要指定。
* /
certificateAlias:san,

/ **
* @cfg {String} certificatePassword
*指定的密码在证书导出期间
* /
certificatePassword:san12345,

/ **
* @cfg {String} provisionProfile
*路径到您可以创建的配置文件(APP_NAME.mobileprovision),然后从Apple的配置门户下载
* /
provisionProfile:,

/ **
* @cfg {String} URLScheme
*与应用程序进行通信的URL方案,如果在项目中不使用自定义URL方案,则可以为空。
* /
URLScheme:,

/ **
* @cfg {String} notificationConfiguration
*推送通知的通知配置,如果您不在项目中使用推送通知,可以是调试,释放或空。
* /
notificationConfiguration:,

/ **
* @cfg {String} sdkPath
*这是Android SDK,如果您正在开发Android应用程序。
* /
sdkPath:C:/ Android / adt-bundle-windows-x86 / sdk,

/ **
* @cfg { String} androidAPILevel
*这是android API级别,Android SDK的版本要使用,您可以在这里阅读更多关于这一点:http://developer.android.com/guide/appendix/api-levels.html。
*请确保在android SDK管理器(android_sdk / tools / android)中安装相应的平台API
* /
androidAPILevel:17,

/ **
/ **
* @cfg {Array [String]}权限
*应用程序使用的权限数组(仅限Android)
*权限的完整列表对于Android应用程序可以在这里找到:http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_CHECKIN_PROPERTIES
* /
权限:[
INTERNET ,
ACCESS_NETWORK_STATE,
CAMERA,
VIBRATE,
ACCESS_FINE_LOCATION,
ACCESS_COARSE_LOCATION,
CALL_PHONE
],

/ **
* @cfg {Array [String]} orientationents
* @required
*这是应用程序可以运行的方向。
* /
orientation:[
portrait,
landscapeLeft,
landscapeRight,
portraitUpsideDown
]
}

6)之后我执行了以下命令
D:\firstapp\touch-2.4.0-commercial\FirstApp> sencha app package build packager.json



全部我的android路由器,即android框架项目被创建,如下图所示。





一旦我得到以下错误,我的所有的android文件结构都没有得到

stbuild退出非零错误代码:7



完整stact跟踪:

  D:\firstapp\touch-2.4.0-commercial\FirstApp> sencha app package build packager.js 
on
Sencha Cmd v4.0.4.84
[ERR]
创建目录D:\firstapp\touch-2.4.0-commercial\build\src\com\mycompany\myA
ppID
添加文件D:\firstapp\touch-2.4.0-commercial\build\src\com\mycompany\myAppID\ST
Activity.java
创建目录D: \firstapp\touch-2.4.0-commercial\build\res
创建目录D:\firstapp\touch-2.4.0-commercial\build\bin
创建目录D:\firstapp\touch-2.4.0-commercial\build\libs
创建目录D:\firstapp\touch-2.4.0-commercial\build\res\values
添加文件D:\firstapp\touch-2.4.0-commercial\build\res\values\strings.xml
创建目录D:\firstapp\touch-2.4。 0-commercial\build\res/\\layout
添加文件D:\firstapp\touch-2.4.0-commercial\build\res\layout\main.xml
创建目录D:\ firstapp\touch-2.4.0-commercial\build\res\drawable-xhdpi
创建目录D:\firstapp\touch-2.4.0-commercial\build\res\drawable -hdpi
创建目录D:\firstapp\touch-2.4.0-commercial\build\res\drawable -mdpi
创建目录D:\firstapp\touch-2.4。 0-commercial\build\res\drawable-ldpi
添加文件D:\firstapp\touch-2.4.0-commercial\build\AndroidManifest.xml
添加文件D: \firstapp\touch-2.4.0-commercial\build\build.xml
添加文件D:\firstapp\touch-2.4.0-commercial\build\proguard-project.txt
子目录或文件..\build\\\libs\已经存在。
子目录或文件..\build\\\assets\已经存在。
无法找到tools.jar。期望在C:\Program文件(x86)\Java\j
re7\lib\tools.jar
Buildfile:D:\firstapp\touch-2.4中找到它。 0-commercial\build\build.xml

-set-mode-check:

-set-debug-files:

- check-env:
[checkenv] Android SDK工具修订版21.0.1
[checkenv]安装在C:\Android\adt-bundle-windows-x86 \sdk

-setup:
[echo]项目名称:MyApplication
[gettype]项目类型:应用程序

-set-debug-mode:

-debug-obfuscation-check:

-build-setup:
[echo]解决MyApplication的构建目标...
[gettarget]项目目标:Android 4.2
[gettarget] API级别:17
[echo] ----------
[echo]如果需要,创建输出目录...
[mkdir]创建dir: D:\firstapp\touch-2.4.0-commercial\build\bin\res
[mkdir]创建dir:D:\firstapp\touch-2.4.0-c ommercial\build\gen
[mkdir]创建dir:D:\firstapp\touch-2.4.0-commercial\build\bin\classes
[mkdir]创建dir: D:\firstapp\touch-2.4.0-commercial\build\bin\dexedLibs
[echo] ----------
[echo]解析依赖关系MyApplication ...
[依赖关系]库依赖关系:
[dependency] No Libraries
[echo] ----------
[echo] 'debug'...
[subant]没有sub-builds可以迭代

-pre-build:

-code-gen:
[mergemanifest]将AndroidManifest文件合并成一个。
[mergemanifest]清单合并被禁用。仅使用项目清单。
[echo]处理helpl文件...
[aidl]否AIDL文件进行编译。
[echo] ----------
[echo]处理RenderScript文件...
[renderscript]没有要编译的RenderScript文件。
[echo] ----------
[echo]处理资源...
[aapt]生成资源ID ...
[aapt] D :\firstapp\touch-2.4.0-commercial\build\bin\AndroidManifest.xml:11:
错误:错误:找不到匹配给定名称的资源(在'icon'与val
ue'@ drawable / icon')。

BUILD FAILED
C:\Android\adt-bundle-windows-x86\sdk\tools\ant\build.xml:647:以下err
或执行此行时发生:
C:\Android\adt-bundle-windows-x86\sdk\tools\ant\build.xml:688:null返回:1

总时间:2秒
C:/ Android / adt-bundle-windows-x86 / sdk\tools\android创建项目--target a
ndroid- 17 - 名称MyApplication - 活动STActivity --path../build/\/--pack
age com.mycompany.myAppID
无法运行蚂蚁错误:1
无法打包应用程序

[ERR] stbuild退出非零代码:7

D:\firstapp\touch-2.4.0-commercial\ FirstApp>

更新
感谢Mr.Martin指向右边方向,我通过在packager.json iconName:icon.png添加以下行来解决问题,

解决方案

构建过程失败,因为它错过了一个图标。这通过以下行传达:

  [aapt] D:\firstapp\touch-2.4.0-commercial \\ build = \\ bin / 

我没有使用Sencha Cmd来构建一个phonegap项目(我直接使用phonegap),所以我不知道哪个图标丢失或您要在packager.json文件中提供哪些名称。
但错误说,aapt正在寻找一个名为'icon.png'的图标。您没有在packager.json中提供此图标。



确保所有图标都位于资源/图标文件夹中,并正确命名。


I have downloaded sencha command v4.0.4.84 , sencha touch2.4.0-commercial and have installed ruby 1.9.3p545 and installed sass and compass and ant and installed jdk 1.7 and set classpath ,path successfully in my windows 7 64 bit machine.

PS : The problem i am facing is to Unable to generate android skeleton project from sencha touch example project.

Steps I have tried

  1. Extracted the sencha touch 2.4.0 -commerical and then in the command prompt executed the following command

    D:\firstapp\touch-2.4.0-commercial\FirstApp>sencha generate app firstApp ../FirstApp

2) Now I have copied the files of KitchenSink example from senchatouch and replaced (pasted) the contents in the FirstApp.

3) Then executed the following command to refresh the app sencha app refresh

4) Then I have created keytool as shown below C:\Program Files (x86)\Java\jjdk1.7\bin>keytool -genkey -v -keystore D:\firstapp\touch-2.4.0-commercial\firstapp.keystore -alias san -keyalg RSA -keysize 2048 -validity 10000

5) Now I have updated the content of packager.json and there i fed the certificate path and it's password and alias name and android sdk path . Content of Packager.json

{
    /**
     * @cfg {String} applicationName
     * @required
     * This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
     * the name of your application in the Apple Provisioning Portal.
     */
    "applicationName":"My Application",

    /**
     * @cfg {String} applicationId
     * This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
     */
    "applicationId":"com.mycompany.myAppID",

    /**
     * @cfg {String} bundleSeedId
     * A ten character string which stands before aplication ID in Apple Provisioning Portal
     */
    "bundleSeedId":"KPXFEPZ6EF",

    /**
     * @cfg {String} versionString
     * @required
     * This is the version of your application.
     */
    "versionString":"1.0",

    /**
     * @cfg {Integer} versionCode
     * @required
     * This is the integer version code of your application, or you can refer to it as a build number. Used only for Android builds.
     */
    "versionCode":"1",

    /**
     * @cfg {Object} icon
     * For iOS, please refer to their documentation about icon sizes:
     * https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/IconMatrix.html
     *
     * For Android, please refer to the Google Launcher icons guide:
     * http://developer.android.com/design/style/iconography.html
     *
     * iOS 7 uses 60, 76, 120, 152 (29, 58 for the Settings app; 40, 80 for Spotlight search results).
     * iOS 6.1 and earlier uses 57, 72, 114, 144 (29, 58 for the Settings app, for Spotlight search results on iPhone; 50 and 100 for Spotlight search results on iPad).
     * Android uses 36, 48, 72, 96.
     * If you package for Android you can ignore iOS icons and vice versa.
     */
    "icon": {
        "60":"resources/icons/Icon.png",
        "120":"resources/icons/Icon@2x.png",
        "76":"resources/icons/Icon~ipad.png",
        "152":"resources/icons/Icon~ipad@2x.png",
        "36":"resources/icons/Icon-36.png",
        "48":"resources/icons/Icon-48.png",
        "96":"resources/icons/Icon-96.png",
        "57":"resources/icons/Icon-57.png",
        "114":"resources/icons/Icon-57@2x.png",
        "72":"resources/icons/Icon-72.png",
        "144":"resources/icons/Icon-72@2x.png",
        "29":"resources/icons/Icon-Small.png",
        "58":"resources/icons/Icon-Small@2x.png",
        "40":"resources/icons/Icon-Small-40.png",
        "80":"resources/icons/Icon-Small-40@2x.png",
        "50":"resources/icons/Icon-Small-50.png",
        "100":"resources/icons/Icon-Small-50@2x.png"
    },

    /**
     * @cfg {String} inputPath
     * @required
     * This is location of your Sencha Touch 2 application, relative to this configuration file.
     */
    "inputPath":"./",

    /**
     * @cfg {String} outputPath
     * @required
     * This is where the built application file with be saved. Make sure that output path is not in your input path, you may get into endless recursive copying
     */
    "outputPath":"../build/",

    /**
     * @cfg {String} configuration
     * @required
     * This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
     * store - in which case `Release` should be specified.
     */
    "configuration":"Debug",

    /**
     * @cfg {String} platform
     * @required
     * This is the platform where you will be running your application. Available options are:
     *  - iOSSimulator
     *  - iOS
     *  - Android
     *  - AndroidEmulator
     */
    "platform":"Android",

    /**
     * @cfg {String} deviceType
     * @required
     * This is device type that your application will be running on.
     *
     * If you are developing for Android, this is not necessary.
     *
     * Available options are:
     *  - iPhone
     *  - iPad
     *  - Universal
     */
    "deviceType":"Universal",

    /**
     * @cfg {String} certificatePath
     * This is the location of your certificate.
     * This is required when you are developing for Android or you are developing on Windows.
     */
    "certificatePath":"D:/firstapp/touch-2.4.0-commercial/testapp/my-release-key.keystore",

    /**
     * @cfg {String} certificateAlias
     * This is the name of your certificate.
     *
     * IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
     *
     * This can be just a simple matcher. For example, if your certificate name is "iPhone Developer: Robert Dougan (ABCDEFGHIJ)", you
     * can just put "iPhone Developer".
     *
     * When using a certificatePath on Windows, you do not need to specify this.
     */
    "certificateAlias":"san",

    /**
     * @cfg {String} certificatePassword
     * The password which was specified during certificate export
     */
    "certificatePassword":"san12345",

    /**
     * @cfg {String} provisionProfile
     * The path to the provision profile (APP_NAME.mobileprovision) which you can create and then download from Apple's provisioning portal
     */
    "provisionProfile":"",

    /**
     * @cfg {String} URLScheme
     * URL scheme for communication with your application, can be empty if you don't use custom URL scheme in your project.
     */
    "URLScheme":"",

    /**
     * @cfg {String} notificationConfiguration
     * Notification configuration for push notifications, can be "debug", "release" or empty if you don't use push notifications in your project.
     */
    "notificationConfiguration":"",

    /**
     * @cfg {String} sdkPath
     * This is the path to the Android SDK, if you are developing an Android application.
     */
    "sdkPath":"C:/Android/adt-bundle-windows-x86/sdk",

    /**
     * @cfg {String} androidAPILevel
     * This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api-levels.html.
     * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
     */
    "androidAPILevel":"17",

    /**
    /**
     * @cfg {Array[String]} permissions
     * Array of permissions that is used by an application (Android only) 
     * Full list of permissions for Android application can be found here: http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_CHECKIN_PROPERTIES
     */
    "permissions":[
        "INTERNET",
        "ACCESS_NETWORK_STATE",
        "CAMERA",
        "VIBRATE",
        "ACCESS_FINE_LOCATION",
        "ACCESS_COARSE_LOCATION",
        "CALL_PHONE"
    ],

    /**
     * @cfg {Array[String]} orientations
     * @required
     * This is orientations that this application can run.
     */
    "orientations": [
        "portrait",
        "landscapeLeft",
        "landscapeRight",
        "portraitUpsideDown"
    ]
}

6) After that i have executed the following command D:\firstapp\touch-2.4.0-commercial\FirstApp>sencha app package build packager.json

All my android directortes i.e., android skeleton project were created as you see can in the following picture

Once I got the following error , all my android files structures were gone i m getting

stbuild exited with non zero error code:7

full stact trace:

D:\firstapp\touch-2.4.0-commercial\FirstApp>sencha app package build packager.js
on
Sencha Cmd v4.0.4.84
[ERR]
Created directory D:\firstapp\touch-2.4.0-commercial\build\src\com\mycompany\myA
ppID
Added file D:\firstapp\touch-2.4.0-commercial\build\src\com\mycompany\myAppID\ST
Activity.java
Created directory D:\firstapp\touch-2.4.0-commercial\build\res
Created directory D:\firstapp\touch-2.4.0-commercial\build\bin
Created directory D:\firstapp\touch-2.4.0-commercial\build\libs
Created directory D:\firstapp\touch-2.4.0-commercial\build\res\values
Added file D:\firstapp\touch-2.4.0-commercial\build\res\values\strings.xml
Created directory D:\firstapp\touch-2.4.0-commercial\build\res\layout
Added file D:\firstapp\touch-2.4.0-commercial\build\res\layout\main.xml
Created directory D:\firstapp\touch-2.4.0-commercial\build\res\drawable-xhdpi
Created directory D:\firstapp\touch-2.4.0-commercial\build\res\drawable-hdpi
Created directory D:\firstapp\touch-2.4.0-commercial\build\res\drawable-mdpi
Created directory D:\firstapp\touch-2.4.0-commercial\build\res\drawable-ldpi
Added file D:\firstapp\touch-2.4.0-commercial\build\AndroidManifest.xml
Added file D:\firstapp\touch-2.4.0-commercial\build\build.xml
Added file D:\firstapp\touch-2.4.0-commercial\build\proguard-project.txt
A subdirectory or file ..\build\\\libs\ already exists.
A subdirectory or file ..\build\\\assets\ already exists.
Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\j
re7\lib\tools.jar
Buildfile: D:\firstapp\touch-2.4.0-commercial\build\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at C:\Android\adt-bundle-windows-x86\sdk

-setup:
     [echo] Project Name: MyApplication
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-build-setup:
     [echo] Resolving Build Target for MyApplication...
[gettarget] Project Target:   Android 4.2
[gettarget] API level:        17
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: D:\firstapp\touch-2.4.0-commercial\build\bin\res
    [mkdir] Created dir: D:\firstapp\touch-2.4.0-commercial\build\gen
    [mkdir] Created dir: D:\firstapp\touch-2.4.0-commercial\build\bin\classes
    [mkdir] Created dir: D:\firstapp\touch-2.4.0-commercial\build\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for MyApplication...
[dependency] Library dependencies:
[dependency] No Libraries
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-pre-build:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] D:\firstapp\touch-2.4.0-commercial\build\bin\AndroidManifest.xml:11:
 error: Error: No resource found that matches the given name (at 'icon' with val
ue '@drawable/icon').

BUILD FAILED
C:\Android\adt-bundle-windows-x86\sdk\tools\ant\build.xml:647: The following err
or occurred while executing this line:
C:\Android\adt-bundle-windows-x86\sdk\tools\ant\build.xml:688: null returned: 1

Total time: 2 seconds
""C:/Android/adt-bundle-windows-x86/sdk\tools\android" create project --target a
ndroid-17 --name MyApplication --activity STActivity --path "../build/\/" --pack
age com.mycompany.myAppID"
Could not run ant with error: 1
Failed to package application

[ERR] stbuild exited with non-zero code : 7

D:\firstapp\touch-2.4.0-commercial\FirstApp> 

Update Thanks to Mr.Martin for pointing in right direction , I have fixed the issue by adding the following line in packager.json "iconName":"icon.png",

解决方案

The build process fails, because it misses an icon. This is communicated by the following line:

[aapt] D:\firstapp\touch-2.4.0-commercial\build\bin\AndroidManifest.xml:11:
 error: Error: No resource found that matches the given name (at 'icon' with val
ue '@drawable/icon').

I haven't used Sencha Cmd to build a phonegap project yet (I use phonegap directly) so I have no idea which icon is missing or what names you have to provide in your packager.json file. But the error says that aapt is looking for an icon that is named 'icon.png'. You have not provided this icon in your packager.json.

Make sure that all icons are in your resources/icons folder and are named correctly.

这篇关于由于stbuild退出非零代码,无法从sencha touch生成android框架项目:7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆