我们可以创建多DEX支持Android的钛构建? [英] Can we create multi dex support builds in Titanium android?

查看:135
本文介绍了我们可以创建多DEX支持Android的钛构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在更新钛我开始了65K限制错误,我得到的是解决发展后在钛android.Somehow应用程序:
的https:// WWW。 contentful.com/blog/2014/10/30/android-and-the-dex-64k-methods-limit/
但是,如何在钛实现这些?

I have been developing an application in Titanium android.Somehow after updating titanium i started getting the 65k limit error and the solution i got is : https://www.contentful.com/blog/2014/10/30/android-and-the-dex-64k-methods-limit/ But how to implement these in Titanium ?

推荐答案

这个问题被问及的一个问题是在2014年创建:的 https://jira.appcelerator.org/browse/TIMOB-18082

this question was asked and an issue was created in 2014: https://jira.appcelerator.org/browse/TIMOB-18082

然而,它没有解决。 (根据钛SDK 5.1.1.GA)

however, it is not resolved. (Under Titanium SDK 5.1.1.GA)

我今天遇到这个问题,我的解决方法是:

I met this problem today, and my solution is:

删除不必要的jar文件的!

这些jar文件被一些java类简称,具有巨大的方法(1K多),但它不会在运行时使用,所以删除它们不会导致应用程序崩溃,也不抛出异常。

Those jar files was referred by some java class, has huge methods ( more than 1k) but it will not be used at run time, so removing them will not cause app crash nor throw exceptions.

这是不是一个最终的解决方案,但也有点绝招。什么,这对我的作品。

This is not an final solution, but kinda of trick. whatever, it works for me.

这篇关于我们可以创建多DEX支持Android的钛构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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