Android development on Ubuntu: Difference between revisions

From Integrics Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
 
Line 6: Line 6:
</pre></code>
</pre></code>


- Download and extract Android command-line tools from:
- Download and extract Android command-line tools from: https://developer.android.com/studio/index.html
<code><pre>
https://developer.android.com/studio/index.html
</pre></code>


- Install Android packages:
- Install Android packages:

Latest revision as of 01:40, 15 March 2017

The following should give you a working environment on Ubuntu 16.04 to compile the Enswitch Android app.

- Install Ubuntu packages:

sudo apt-get install openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless ant

- Download and extract Android command-line tools from: https://developer.android.com/studio/index.html

- Install Android packages:

bin/sdkmanager tools
bin/sdkmanager platform-tools
bin/sdkmanager 'platforms;android-23'
bin/sdkmanager 'build-tools;23.0.2'

- Clone enswitch-android to ~/git/ and cd to that directory.

- Compile the app:

make