首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在MTWW中上传本地Android应用程序失败

在MTWW中上传本地Android应用程序失败
EN

Stack Overflow用户
提问于 2014-08-26 12:19:10
回答 2查看 453关注 0票数 1

我遇到了从设备/模拟器上传本地android应用程序到MTW的问题。设想的情况是:

  1. 用户使用Android和CLI构建移动应用程序
  2. 将移动应用程序部署到模拟器或设备上。
  3. 测试功能,它工作正常。
  4. 在eclipse中创建测试工作台项目
  5. 在模拟器上启动MTW客户端并连接到项目
  6. 将应用程序从Android模拟器上传到Test

就是在这一点上,它失败了,我得到一个错误上传它。这似乎又是某种排列问题,但我不知道如何解决它。

现在如果我上传一个混合安卓应用程序,那么它就能工作了,所以我知道我的eclipse环境已经配置好了(至少在一定程度上),因为我已经解决了初始的app对齐问题.

所以我最初的想法是

  1. 也许我需要做一些额外的配置,但对我来说还不清楚。
  2. 也许我正在使用的apk文件在某种程度上是无效的,我需要做一些特殊的事情才能上传它,注意,我在build.gradle文件中使用了with选项。但没有结果。 。安卓{ compileSdkVersion 19 buildToolsVersion "19.1“ defaultConfig { minSdkVersion 10 targetSdkVersion 19 versionCode 1 versionName "1.0“} buildTypes { runProguard false proguardFiles proguardFiles‘pro卫士规则. true’zipAlign true} } ..。

日志显示了以下内容

代码语言:javascript
复制
!ENTRY com.ibm.rational.test.lt.models.behavior.moeb 1 0 2014-08-26 21:37:08.540
!MESSAGE CRRTWM6013I from component Android-BuildChain: configuration: {cache.dir=C:\Work\Worklight_v62\Test\.metadata\.plugins\com.ibm.rational.test.lt.models.behavior.moeb\cache, android.runtime.dir=C:\IBM\WorklightStudio_v62\eclipse\eclipse\plugins\com.ibm.rational.test.mobile.android.runtime_1.2.100.v20140603_1426, ibm.jdk.install.dir=C:\Program Files\Java\jdk1.7.0_25, android.sdk.install.dir=C:\Utils\Android\android-sdk, runtime.cache.dir=C:\Work\Worklight_v62\Test\.metadata\.plugins\com.ibm.rational.test.lt.models.behavior.moeb\builds\runtimes}

!ENTRY com.ibm.cic.licensing.common.util 4 0 2014-08-26 21:37:19.161
!MESSAGE LicenseCheck returned FALSE!

!ENTRY com.ibm.rational.test.lt.models.behavior.moeb 4 0 2014-08-26 21:37:35.694
!MESSAGE CRRTWM6012E exception thrown from component Android-BuildChain while building from '0-com.example.ibmbankapp.app-1.apk'
!STACK 0
brut.androlib.AndrolibException: com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec$ProcessExecException: Cannot exec command: [C:\Utils\Android\ANDROI~1\build-tools\20.0.0\aapt.exe, p, --no-crunch, -F, C:\Users\mmalc\AppData\Local\Temp\APKTOOL6016720483897094701.tmp, -0, arsc, -I, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\cache\apktool\framework\1.apk, -S, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res, -M, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\AndroidManifest.xml]
Exit code: 1
Process output stream:

Process error stream:
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:118: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:327: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:368: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:382: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:389: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values-v14\styles.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:401: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:407: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:429: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:502: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.Base'.

    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:444)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:376)
    at brut.androlib.Androlib.buildResources(Androlib.java:320)
    at brut.androlib.Androlib.build(Androlib.java:237)
    at brut.androlib.Androlib.build(Androlib.java:203)
    at com.ibm.rational.test.mobile.android.buildchain.tools.build.BuildWrapper.build(BuildWrapper.java:213)
    at com.ibm.rational.test.mobile.android.buildchain.AndroidBuildChain.build(AndroidBuildChain.java:289)
    at com.ibm.rational.test.lt.models.behavior.moeb.utils.BuildChainManager$Build.run(BuildChainManager.java:198)
    at java.lang.Thread.run(Unknown Source)
Caused by: com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec$ProcessExecException: Cannot exec command: [C:\Utils\Android\ANDROI~1\build-tools\20.0.0\aapt.exe, p, --no-crunch, -F, C:\Users\mmalc\AppData\Local\Temp\APKTOOL6016720483897094701.tmp, -0, arsc, -I, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\cache\apktool\framework\1.apk, -S, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res, -M, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\AndroidManifest.xml]
Exit code: 1
Process output stream:

Process error stream:
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:118: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:327: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:368: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:382: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:389: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values-v14\styles.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:401: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:407: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:429: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:502: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.Base'.

    at com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec.exec(ProcessExec.java:102)
    at com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec.exec(ProcessExec.java:77)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:442)
    ... 8 more

!ENTRY com.ibm.rational.test.lt.models.behavior.moeb 4 0 2014-08-26 21:37:35.704
!MESSAGE CRRTWM6010E exception thrown while building from '0-com.example.ibmbankapp.app-1.apk'
!STACK 0
java.lang.Error: Playback-ready package build/sign/align failed
    at com.ibm.rational.test.mobile.android.buildchain.AndroidBuildChain.build(AndroidBuildChain.java:290)
    at com.ibm.rational.test.lt.models.behavior.moeb.utils.BuildChainManager$Build.run(BuildChainManager.java:198)
    at java.lang.Thread.run(Unknown Source)

我使用的是WL v6.2.0.00-20140801-1709 MTWW v 8.5.100.v20131024_1533

我也已经看过another post关于the对齐的问题了,没有任何joy,因为我没有安装Android 20 - 22。

感谢你的指点。

EN

回答 2

Stack Overflow用户

发布于 2014-08-28 08:31:31

这个问题来自新的Android第23版。Google修改了has工具的位置:-(

以下是解决办法:

将android-sdk-dir/build-tools/version/zipalign.exe复制到/tools

多米尼克

票数 0
EN

Stack Overflow用户

发布于 2015-10-07 10:42:41

这个问题出现在最新的构建工具中。请参阅以下答案:https://stackoverflow.com/a/32517719/2633707

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25505673

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档