I am trying to build a FBReader project http://fbreader.org/FBReaderJ, which has native code dependencies. With latest ADT and Android Studio v. 0.5.4 I am able to import eclipse project also with NDK. The project builds fine, altough I got exception at runtime
java.lang.NoClassDefFoundError: org/geometerplus/fbreader/formats/PluginCollection
at org.geometerplus.fbreader.book.BookCollection.getBookByFile(BookCollection.java:63)
at org.geometerplus.android.fbreader.libraryService.LibraryService$LibraryImplementation.getBookByFile(LibraryService.java:174)
at org.geometerplus.android.fbreader.libraryService.LibraryInterface$Stub.onTransact(LibraryInterface.java:103)
at android.os.Binder.execTransact(Binder.java:367)
at dalvik.system.NativeStart.run(Native Method)
When I try to build and run project from eclipse using ant, everything works fine. I did nothing else than import - build - run. Clean, rebuild, sync studio wont help. The class pointed in exception is not in any library module, it's in main module, but different package.
Any thoughts? Any help much appreciated!