-
Notifications
You must be signed in to change notification settings - Fork 0
/
README-DEVELOPERS
58 lines (38 loc) · 1.58 KB
/
README-DEVELOPERS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
== Android Studio ==
1. Set ANDROID_HOME variable to Android SDK location:
export ANDROID_HOME=/opt/adt-bundle-linux-latest/sdk/
2. Start android studio
3. Import gradle project
4. Start Android SDK Manager and install Android Support Library
5. Configure android studio to make desktop version work:
1. Open: Run -> Edit Configurations...,
2. click the plus (+) button and select Application.
3. Set the Name to Desktop.
4. Set the field "Use classpath of module" to desktop
5. Click on the button of the Main class field and select the DesktopLauncher class.
6. Set the Working directory to your android/assets/ (or your_project_path/core/assets/) folder!
7. Click Apply and then OK. You have now created a run configuration for your desktop project.
8. You can now select the configuration and run it.
=== Create desktop launcher ===
1. Create a new file under ~/.local/share/applications/ with the following content:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Android Studio
Icon=jetbrains-android-studio.png
Path=/PATH/USED/AS/WORKINGDIR
Exec=env ANDROID_HOME=/PATH/TO/Android/Sdk /PATH/TO/android-studio/bin/studio.sh
StartupNotify=false
StartupWMClass=jetbrains-android-studio
OnlyShowIn=Unity;
X-UnityGenerated=true
2. Change Path and Exec to match your filesystem hierarchy.
== Commandline ==
1. Set ANDROID_HOME variable to Android SDK location:
export ANDROID_HOME=/opt/adt-bundle-linux-latest/sdk/
2. Run project
On the desktop:
gradle desktop:run
On an android device:
gradle android:installDebug android:run