Titanium:安装Cloud Push的问题(ti.cloudpush)

时间:2017-09-20 14:10:05

标签: titanium appcelerator appcelerator-titanium titanium-alloy appcelerator-alloy

我在安装ti.cloudpush时遇到了一些奇怪的问题。

首先,当我使用Accelerator Studio的TiApp编辑器向我的Alloy项目添加ti.cloudpush时,它说唯一可用的版本是4.0.3

这很奇怪,因为以下命令显示ti.cloudpush的最新版本实际上是v3.4.0:

$ gittio info ti.cloudpush

[INFO]  ti.cloudpush searching...

 id: ti.cloudpush
 type: module
 description: ACS Push notifications for Android
 title: cloudpush
 tags:
 platforms: android
 user: torneseumprogramador
 repo: aplicativo
 versions:

   version: 3.4.0
   datetime: 2016-07-22 20:29:16
   platforms: android
   dist:
   path:
   tree: 0360101006acbad47526f920bda3289898c398f9

通过以下方式验证了这一点:

https://github.com/torneseumprogramador/aplicativo/tree/master/modules/ti.cloudpush

http://gitt.io/component/ti.cloudpush

尽管如此,我还是继续使用以下命令运行我的Android应用程序

$ appc run -T device -p Android

然而,我接到错误:

[ERROR] Conflicting jar files detected:
[ERROR]  
[ERROR] The following modules have different "google-play-services-base.jar" files
[ERROR]    ti.map         (version 3.3.0) (hash=6ac3fc6163fe93aee502091a3012193c)
[ERROR]    ti.cloudpush   (version 4.0.3) (hash=291a4dc25f913c6de3415675f52cc7fa)
[ERROR]  
[ERROR] You can either select a version of these modules where the conflicting jar file is the same or you
[ERROR] can try copying the jar file from one module's "lib" folder to the other module's "lib" folder.

所以我决定通过更改tiapp.xml来使用旧版本的ti.cloudpush来使用它:

<module platform="android" version="3.4.0">ti.cloudpush</module>

但是它给了我错误:

[ERROR] Could not find all required Titanium Modules:
[ERROR]    id: ti.cloudpush      version: 3.4.0  platform: android       deploy-type: test

所以我然后使用gittio并执行以下命令(由http://gitt.io/component/ti.cloudpush建议但是我得到以下错误:

$ gittio install ti.cloudpush
[INFO]  ti.cloudpush searching...
[ERROR] ti.cloudpush:commonjs no distributable available
[ERROR] ti.cloudpush:android no distributable available
[ERROR] ti.cloudpush:ios no distributable available

发生了什么以及如何安装ti.cloudpush?以前这对我有用。

1 个答案:

答案 0 :(得分:0)

ti.cloudpush是Appcelerator的一个模块。 Gitt.io是一个不是由Apccelerator维护的网站(这是一项社区活动)。

无法找到3.4.0版本的原因是因为它可能不支持您正在使用的SDK。

通过查看显示的documentation,您不需要下载模块,但只是包含它应该可以正常工作。如果你使用Appcelerator Studio,你也应该在点击&#34; +&#34;当您添加模块时,tiapp-editor右侧的图标。

相关问题