You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 4_Android/android_native.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,21 +6,25 @@ Building native ARToolKit libraries requires a development environment capable o
6
6
7
7
*Note: This is by no means a comprehensive guide on how to setup an NDK development environment. If you need assistance in this area, please search online as there are many tutorials and articles covering this topic and it is outside the scope of this user guide.*
8
8
9
-
> Deprecated development tools and methods:
10
-
>
11
-
> - Eclipse IDE
12
-
> - ADT Plugin for Eclipse
13
-
> - Android NDK plugin for Eclipse
14
-
> - Cygwin
9
+
---
10
+
**Deprecated development tools and methods:**
11
+
12
+
- Eclipse IDE
13
+
- ADT Plugin for Eclipse
14
+
- Android NDK plugin for Eclipse
15
+
- Cygwin
16
+
17
+
---
15
18
16
19
The following SDKs and tools should be installed and configured correctly on one of the chosen supported development systems.
17
20
18
21
#####These are required for standard Android JDK development:
19
22
20
23
-[Standard Edition Java Development Kit][1] 1.7 or greater
21
24
-[Android SDK][2] (Downloaded with Android Studio IDE)
22
-
- for Mac OS X: default install path: *"/Users/<user>/Library/Android/sdk"*
23
-
- for Windows Desktop: recommended install path: *"C:\Users\\<user>\\Android\\sdk"*
25
+
- for Mac OS X: default install path: *"/Users/<user>/Library/Android/sdk"*
26
+
- for Windows Desktop: recommended install path: *"C:\Users\\<user>\\Android\\sdk"*
27
+
24
28
-[Android Studio IDE][3] - version 1.5.x
25
29
26
30
#####Requirements for building native code with the NDK within or outside of the Android Studio IDE:
@@ -44,11 +48,12 @@ When installing Git, from the Git setup wizard:
44
48
45
49
---
46
50
47
-
Please try to ensure you have a working Android SDK and NDK environment before continuing. This, unfortunately, is not as easy as it sounds due the constantly evolving Android Studio tool set. Try the Hello-JNI tutorial available from [codelabs.developers.google.com][9]. Try implementing Hello-JNI app using NDK version 11+ for reasons explained below. Strive to use the latest and greatest developers.android.com supported Gradle plugin (com.android.tools.build:gradle-experimental:x.x.x) and Gradle version (http=\://services.gradle.org/distributions/gradle-x.x-all.zip) combination. Depending on the supported combination of experimental Gradle plugin and Gradle version used, there are differing required source updates to the HelloAndroidJni modules' build.gradle file. Finally, once you create the new Hello-JNI Android Studio project and module, reduce the complexity of the module by deleting the Test directory found under app/src/ in the Project pane.
51
+
Please try to ensure you have a working Android SDK and NDK environment before continuing. This, unfortunately, is not as easy as it sounds due the constantly evolving Android Studio tool set. Try the Hello-JNI tutorial available from [codelabs.developers.google.com][9]. Try implementing Hello-JNI app using NDK version 11+ for reasons explained below. Strive to use the latest and greatest developers.android.com supported Gradle plugin (com.android.tools.build:gradle-experimental:x.x.x) and Gradle version (http://services.gradle.org/distributions/gradle-x.x-all.zip) combination. Depending on the supported combination of experimental Gradle plugin and Gradle version used, there are differing required source updates to the HelloAndroidJni modules' build.gradle file. Finally, once you create the new Hello-JNI Android Studio project and module, reduce the complexity of the module by deleting the Test directory found under app/src/ in the Project pane.
48
52
49
53
Keep in mind that the tutorial is written for Android Studio executed on Linux or Mac OS X but Android Studio executed on Windows 10 will work as well.
50
54
51
-
> Minor Android Studio for Windows Difference:<br/>
55
+
> Minor Android Studio for Windows Difference:
56
+
>
52
57
> Step 2-7: In Android Studio: open "File" menu item, click to select "Settings...", open "Build, Execution, Deployment" twirl, open "Build Tools" twirl, open "Gradle" twirl, under "Project-level settings" group-box, ensure that "Use default gradle wrapper (recommended)" is selected.
53
58
54
59
For help with the Eclipse to Android Studio IDE transition, see the document https://github.com/artoolkit/artoolkit5/blob/master/AndroidStudioProjects/Docs/AS_Migration.pdf.
0 commit comments