qoppapdfリーダーをAndroidアプリケーションに統合しようとしています
http://www.qoppa.com/android/pdfsdk/guide/index.html- プロジェクトのクラスパスにjarファイルを追加します。 -アセットフォルダを追加します。-libsフォルダーを追加します。
Eclipseを起動すると、すべてが正常に機能し、ワークスペースでプロジェクトを開いて実装を続行できます。しかし、PDFプロジェクトを新しいEclipseインスタンスとして実行すると、このエラーが発生します
[2012-10-29 22:23:25 - com.test] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(c.b.b.c.b.b.b.b.b.i$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-29 22:26:21 - Dex Loader] Unable to execute dex: Java heap space
[2012-10-29 22:26:23 - com.test] Conversion to Dalvik format failed: Unable to execute dex: Java heap space
プロジェクトをクリーンアップしようとしましたが、それでもエラーが発生します。
ネットで検索したところ、eclipse.iniファイルと実行構成でPermGenのサイズを大きくする必要があることがわかりました。いくつかの変更後の私のevlipse.iniは次のとおりです。
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m
使用できません。それでもエラーが発生します。
何が問題なのですか?
qoppapdf.jarが原因だと思いますが、jarのサイズは4000000バイトを超える巨大なものです。しかし、この瓶を使用しているサンプルがあるので、それはうまくいくはずです、私は私の日食がそれをすることができない理由がわかりません