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
{{ message }}
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
May require a reboot after this if Android Studio hangs on start up.
33
+
3. Select Custom Install and install the default SDK platform, currently if not installed when you run studio.h it complains that no SDK installed and run set up wizard again.
34
+
4. From Android Studio select Configure -> SDK Manager and select the following:
35
+
SDK Android Platforms
36
+
• 7.0 API 24 rev 2
37
+
• 6.0 API 23 rev 3
38
+
• 5.0 API 21 rev 2
39
+
• 3.1 API 12 rev 3 (Latest version of NDK has dropped support for this.)
40
+
SDK Tools
41
+
• GPU Debugging Tools
42
+
• CMake
43
+
• LLDB
44
+
• Android Emulator 25.3.1
45
+
• Android SDK Platform tools 25.0.4 - ADB tool
46
+
• Android SDK tools 25.3.1
47
+
• NDK 14.0.3770861
48
+
• Google repository 44
49
+
5. Note on support Libraries for Gradle build Tool
50
+
There are a set of constraint libraries used by Gradle and these will be specific to a particular application. For instance, the Choreographer app (please see below) requires constraint-layout:1.0.0-alpha7. This is configured in the /Choreographer/choreographer-30fps/build.gradle file.
51
+
Please ensure the appropriate support library is included.
52
+
6. Add path to studio.sh, path to Android tools, and path to Android Platform tools, to the PATH environment variable in .bashrc or, .profile etc.
We call the process of inserting the Graphics API Shim into the apps 'shimifying'. To shimify the apps navigate to the Tools directory:
73
+
cd <yourLPGPU2gitrepo>/Tools
74
+
then run the shimifying script like this
75
+
./buildv3.py shimify_apps
76
+
This will take a few minutes, but is quite verbose so you will see lots of encouraging activity.
77
+
When it is finished it should say "Success! (No actions failed)"
78
+
Now you are ready to run your first app
79
+
80
+
### Run Your First App
81
+
Now that you have cloned the <yourLPGPU2gitrepo>/Tools repo and shimified all the apps, open the ReplayNative project in Android Studio. It is located in the <yourLPGPU2gitrepo>/Tools/test directory
82
+
83
+
Plug in your android device and allow your machine to connect to it by clicking "Allow" on the device, if asked.
84
+
Android Studio can take a little while to "warm up", but once the wheel has stopped spinning in the status bar at the bottom, you should have a clickable green arrow go button in the toolbar (at the top of the Android Studio window).
85
+
Click this go button and you should be prompted to select a device. This is in the form of a pop up with a list box containing the name of your device in it. Select the device and click OK.
86
+
Android Studio will begin building. After building the app, Android studio will report "Installing apk" in the status bar, and then "Launching app"
87
+
After a few more seconds, the app should begin to run on your device.
88
+
You can stop it using the red square stop button in the tool.
89
+
The app is installed on your device, so you can disconnect your device (pull the connecting cable out) and find the app called "LPGPU2 Carousel" in the app list on your device.
90
+
You can run it like any other app by clicking on it, and leave it by going to your home screen.
91
+
92
+
Now that you are an expert at running apps (Well done, by the way!) You will want to profile it, and for that you will need CodeXL.
0 commit comments