android - I import and compile FBReaderJ on eclipse But many error occurred -
(1)i downloaded fbreaderj-sources http://www.fbreader.org, i'm having difficult time importing , compiling fbreaderj in eclipse android project.
i did run ndk-build in project catalog cygwin make file libdeflatingdecompressor.so , liblinebreak.so in libs directory
but r.java
missing; why doesn't source include it? know r.java
changes automatically, possible existing file or creating new project in workspace.
how fix it? related local.properties
? in computer sdk , ndk , cygwin installed , local.properties saved sdk.dir = /android/android-sdk_r08-windows/android-sdk-windows ndk.dir = /android/android-ndk-r5b
what problem?
(2) resolved above problem of missig r.java gen/r.java got building failed.
below ant result
what problem in main.xml?
c:\fbreaderj-sources>ant
buildfile: c:\fbreaderj-sources\build.xml . . . [echo] generating r.java / manifest.java resources...
[null] c:\fbreaderj-sources\res\layout\main.xml:8: error: no resource ident
ifier found attribute 'fadescrollbars' in package 'android'
build failed
c:\android\android-sdk_r08-windows\android-sdk-windows\tools\ant\main_rules.xml: 306: null returned: 1
total time: 4 seconds
/res/layout/main.xml
org.geometerplus.zlibrary.ui.android.view.zlandroidwidget android:id="@+id/main_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:focusable="true" android:scrollbars="vertical" android:scrollbaralwaysdrawverticaltrack="true" android:fadescrollbars="false"
below error meaasge eclipse console
java.lang.nullpointerexception @ org.geometerplus.zlibrary.ui.android.view.zlandroidwidget.getmainareaheight(zlandroidwidget.java:560) @ org.geometerplus.zlibrary.ui.android.view.zlandroidwidget.ondraw(zlandroidwidget.java:92) @ android.view.view.draw(view.java:6274) @ android.view.viewgroup.drawchild(viewgroup.java:1526) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1256) @ android.view.viewgroup.drawchild(viewgroup.java:1524) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1256) @ android.view.view.draw(view.java:6277) @ android.widget.framelayout.draw(framelayout.java:352) @ com.android.layoutlib.bridge.bridge.computelayout(bridge.java:408) @ com.android.ide.eclipse.adt.internal.editors.layout.gle2.graphicaleditorpart.computelayout(unknown source) . . .
(my english isn't great, try keep answers simple)
i resolved same issue shifting images , xml files icons folder drawable folders , worked me.
Comments
Post a Comment