AndroidStudio编译FBreaderJ
2016-07-19 19:26
381 查看
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.
Clone the project into your %userprofile%\AndroidStudioProjects\
Import the project into Android Studio
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
Install Android SDK Platform API 14 when prompted
Install Android SDK Platform API 5 when prompted
Install Android SDK Platform API 11 when prompted
FBReader has now been successfully built using Android Studio, but is missing the necessary binaries (*.so)
Compiling
the binaries
To compile the binaries from the source, navigate to where you extracted the NDKExecute 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)
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
相关文章推荐
- 为Android Studio编写自定义Gradle插件的教程
- 解决Android Studio更新错误
- Adnroid Studio Gradle 多渠道打包
- AsyncTask使用
- 第二博、Android开发工具
- AndroidStudio创建TV-APP,出现Error:(28, 13) Failed to resolve: com.squareup.picasso:picasso:2.5.0 的解决
- 教你如何不翻墙就可以快速更新AndroidSDK Manager中的内容
- 如何处理空指针警告
- Android Studio汉化版安装说明
- 解决AndroidStudio导入工程报错:“Your project path contains non-ASCII characters.”
- 关于AndroidStudio的下载安装问题
- AndroidStudio 无法找到有效的JVM
- AndroidStudio中导入github的一个开源项目时出错
- AndroidStudio下配置ArcGIs
- 如何用AndroidStudio导入github项目
- Android Annotations环境搭建(Android Studio)
- AndroidStudio导入Github下载的项目问题
- AndroidStudio新建Java项目
- android studio项目在模拟器运行显示中文乱码