在Cordova配置中添加图标后,Tabris.JS构建失败
Tabris.JS build fails after adding an icon in the Cordova config
所以我创建了一个Tabris.JS应用程序,一切都很好,直到我试图在应用程序中添加一个图标。
当尝试构建android应用程序时,我得到以下错误:
:processDebugResources/home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:27:23-37 : AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/icon').
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/android-sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 3.366 secs
Error: Error code 1 for command: /home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
(..)
/home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:27:23-37 : AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/icon').
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/android-sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: Error code 1 for command: /home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/travis/build/eclipsesource/tabris-js-build-template/build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
Use --force to continue.
Aborted due to warnings.
travis_time:end:033db81c:start=1471880105396556780,finish=1471880238929469762,duration=133532912982
The command "grunt build deploy" exited with 6.
Done. Your build exited with 1.
文件夹的结构如下:
/cordova
/config.xml
/res
/icon.png
/package.json
当然还有其他文件,但它们不是问题所在。
config.xml如下所示:
<?xml version='1.0' encoding='utf-8'?>
<widget id="xx.xx.xx" version="0.1.0">
<name>xxx xx</name>
<description>
xxx
</description>
<author email="xxx@xx.xx" href="https://xx.xx.xx">
xxx
</author>
<plugin name="cordova-plugin-dialogs" version="1.1.1" />
<platform name="android">
<icon src="../res/icon.png" />
</platform>
</widget>
我希望有人能帮我修理它!
我不知道为什么,但我必须在文件夹名称中添加drawable
。我通过反复试验发现了这一点。
相关文章:
- 可以't让我的if语句处理js中的html表单输入
- 使用agility.js进行页面布局和合成
- 使用Clipboard.js复制span文本
- 使用JS如何动态更改显示的html文件中的文本背景颜色
- 强制模板刷新ember.js
- 如何编写HTML输入的JS内联
- Angular JS IE9 Hashbang url rewriting
- 使用JS将数组转换为json对象
- Node.js v6.2.0类扩展不是函数错误
- 当js函数's已执行
- 要求未定义JS回调参数
- 在自定义mean.io包中使用angular-chart.js作为依赖项
- 无法在数据endVal中设置值=“”;{{ucount}}”;使用Angular JS的CountUp
- 如何从Java/scala调用js美化程序
- 如何更改<svg>标记为<img>用js标记
- 如何使用 node.js 比较两个 json 数组
- chrome扩展:尽管运行了at:documentidle,js脚本还是过早启动
- 使用Tabris-js,并尝试使用cordova文件和文件传输插件
- Tabris.js的facebook和twitter登录
- 在Cordova配置中添加图标后,Tabris.JS构建失败