我在安装ti.cloudpush时遇到了一些奇怪的问题。
首先,当我使用Accelerator Studio的TiApp编辑器将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?以前这对我来说很管用。
发布于 2017-09-20 22:21:53
ti.cloudpush是Appcelerator提供的一个模块。Gitt.io是一个不是由Apccelerator维护的网站(它是社区的成果)。
找不到您的3.4.0版本的原因是它可能不支持您正在使用的SDK。
通过查看documentation,您似乎不需要下载模块,但只需包含它就可以正常工作。如果您使用Appcelerator Studio,当您添加模块时,当您在tiapp编辑器中单击右侧的"+“图标时,您也应该看到它被列出。
https://stackoverflow.com/questions/46324378
复制相似问题