AndroidStudio编译FBreaderJ

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值