【问题标题】:How to change the behavior of the Titanium Studio IDE when compiling?编译时如何更改 Titanium Studio IDE 的行为?
【发布时间】:2014-07-03 17:20:40
【问题描述】:

Titanium Studio 的行为很奇怪。当我尝试编译和运行该项目时,它会停止并无法安装应用程序。这样做时会出现此错误:

[ERROR] :  Failed to package application:
[ERROR] :  
[ERROR] :  res/drawable/Icon.png: Invalid file name: must contain only [a-z0-9_.]
[ERROR] Application Installer abnormal process termination. Process exit value was 1

现在我进入 Titanium_studio_workspace/MY_APP/build/android/res/drawable 的文件路径,将 Icon.png 更改为 icon.png。但是在这样做之后,我点击运行,它再次安装应用程序失败并给了我这个错误:

[ERROR] :  Failed to package application:
[ERROR] :  
[ERROR] :  /Users/ebads/Desktop/workspace/MY_APP/build/android/AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/Icon').
[ERROR] Application Installer abnormal process termination. Process exit value was 1

我进入 /MY_APP/build/android/AndroidManifest.xml 并将 XML 中的拼写错误从 Icon 更改为 icon。你猜怎么了?再次点击运行后,我再次遇到第一个错误,当我检查路径 Titanium_studio_workspace/MY_APP/build/android/res/drawable 时,icon.png 变回 Icon.png ! Titanium Studio 改回来了。我怎样才能解决这个问题?

注意:我使用的是 Titanium Studio 3.2.3GA。该应用程序是跨平台的,在使用 iPad 模拟器时可以正常工作。我试图在运行 4.4 KitKat 的 Nexus 10 Android 平板电脑上安装/运行该应用程序。不确定这些信息是否有帮助。

编辑:我只想提一下代码是专有的。

【问题讨论】:

    标签: android titanium titanium-mobile titanium-alloy


    【解决方案1】:

    我自己想出来的。您必须确保上述文件路径中的文件名在 tiapp.xml 文件中也必须以相同的方式拼写。

    【讨论】:

      猜你喜欢
      • 2018-04-26
      • 1970-01-01
      • 2022-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-13
      • 1970-01-01
      相关资源
      最近更新 更多