重复的条目:自定义Android模块中的org/appcelerator/titanium/gen/bindings.json [英] Duplicate entry: org/appcelerator/titanium/gen/bindings.json in custom Android module

查看:91
本文介绍了重复的条目:自定义Android模块中的org/appcelerator/titanium/gen/bindings.json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置/问题

我已经为Titanium创建了一个自定义Android模块,以在Ti内显示Gif动画.该模块的源代码可以在这里找到: https://github.com/m1ga/com.miga.gifview

I've create a custom Android module for Titanium to display Gif animations inside Ti. The module source code can be found here: https://github.com/m1ga/com.miga.gifview

实际模块工作正常,但是当我将其与第二个模块一起使用时(同样的问题),我收到以下错误消息:

The actual module is working fine but when I use it with a second module (with the same problem) I receive the following error:

java.util.zip.ZipException:重复项: org/appcelerator/titanium/gen/bindings.json

java.util.zip.ZipException: duplicate entry: org/appcelerator/titanium/gen/bindings.json

问题出在gifimageview.jar文件内部:

The problem is inside the gifimageview.jar file:

我的两个模块在/gen文件夹中都有一个bindings.json文件,该文件包含与bindings/gifview.json相同的信息.因此,如果我在一个模块中手动将其删除,则可以同时使用两个模块(因为现在只有一个bindings.json).

My two modules each have a bindings.json file inside the /gen folder that contains the same information as the bindings/gifview.json. So if I remove it manually in one module I can use both modules (because there is only one bindings.json now).

问题

如何建议编译器不要创建此文件或更改名称?当我用ant编译模块时,我在输出中看到了这一点:

How can I advise the compiler not to create this file or change the name? When I compile the module with ant I see this in the output:

compile:
    [javac] Compiling 3 source files to /home/miga/dev/ti.gif/android/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] Note: [KrollBindingGen] Running Kroll binding generator.
    [javac] Note: [KrollBindingGen] Succesfully loaded existing binding data: /home/miga/dev/ti.gif/android/build/classes/org/appcelerator/titanium/gen/bindings.json
    [javac] Note: [KrollBindingGen] Found binding for proxy GifView
    [javac] Note: [KrollBindingGen] Found binding for module Tigifview
    [javac] Note: [KrollBindingGen] Generating JSON: file:/home/miga/dev/ti.gif/android/build/classes/org/appcelerator/titanium/gen/bindings.json
     [copy] Copying 1 file to /home/miga/dev/ti.gif/android/build/classes

它正在创建bindings.json

There it is creating the bindings.json

我尝试过的事情

添加

org.eclipse.jdt.apt.processorOptions/kroll.jsonFile=migagifview.json

到设置文件: https://github.com/m1ga/com.miga.gifview/blob/master/android/.settings/org.eclipse.jdt.apt.core.prefs 没用

我的设置

  • javac -version:javac 1.8.0_91
  • CLI版本5.0.6
  • Titanium SDK版本5.2.2.GA
  • Android-23

推荐答案

这是一个已确认的错误,已在6.1.0中修复

This was a confirmed bug and is fixed in 6.1.0

问题详细信息: https://jira.appcelerator.org/browse/TIMOB-23502

这篇关于重复的条目:自定义Android模块中的org/appcelerator/titanium/gen/bindings.json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆