Building FBReader using Android Studio and Gradle

Tested on a fresh installation of Windows 8.1 x64 using Android Studio v1.02 build 1653844, jdk-7u71-windows-x64, and android-ndk-r10d.
  1. Clone the project into your %userprofile%\AndroidStudioProjects\

  2. Import the project into Android Studio

  3. Perform a project level gradle sync (CTR+SHIFT+A and search for "project sync", double click the first result).
    Android Studio may complain about not finding a git.exe in your path, but this will not prevent you from building the project

  4. Install Android SDK Platform API 14 when prompted

  5. Install Android SDK Platform API 5 when prompted

  6. Install Android SDK Platform API 11 when prompted

  7. FBReader has now been successfully built using Android Studio, but is missing the necessary binaries (*.so)

Compiling the binaries

  1. To compile the binaries from the source, navigate to where you extracted the NDK

  2. Execute the following command in your shell:

    ndk-build -C %userprofile%\AndroidStudioProjects\FBReaderJ\fBReaderJ\src\main\jni

    The binaries should be automatically placed into the appropriate directories (%userprofile%\AndroidStudioProjects\FBReaderJ\fBReaderJ\src\main\lib)

  3. Finally, rebuild the project. FBReader should now run without issue on the emulator/on your device.


原文链接:https://github.com/liquiddandruff/FBReaderJ/blob/android_studio/README.md

更多相关文章

  1. Understanding Android(安卓)Custom Attributes: An Article
  2. Drawable getIntrinsicWidth() and getIntrinsicHeight()
  3. Talking about Android(安卓)process
  4. Service API changes starting with Android(安卓)2.0
  5. 微信小程序破解版———给开发者真正的福利
  6. Android(安卓)Studio安装配置详细步骤(超详细)
  7. 使用VS2015调试Android的C++动态链接库
  8. Android(安卓)ViewDragHelper实现QQ侧滑边栏
  9. 最近研究有关Android中的TextView

随机推荐

  1. Android(安卓)NDK 开发中 adb logcat 命
  2. android Spinner setSelection无效 总显
  3. 安装谷歌服务框架
  4. Android(基于imx53开发板)修改内核支持HD
  5. Android百度地图坑之Error inflating cla
  6. Android中进入页面默认定位到ListView的
  7. 学习ContentProvider---之一:查询数据库
  8. Android(安卓)Scroller的理解
  9. 布局添加下划线
  10. Android仿微信底部菜单