Android Studio is the new IDE (Integrated Development Environment) for Android, replacing Eclipse. See Meet Android Studio.
Installation on Microsoft Windows and Linux is similar.
javac -version javac 1.8.0_45and the Update section of the Java Control Panel in the Mac System Preferences says I have Java 8 Update 131. To update your Java, go to Java SE Downloads and press the big square button for Java Platform (JDK) 8u131. Accept the license agreement and select the
.dmg
(disk image)
file for Mac OS X.
On my Mac,
the JDK was installed into the directory
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk
.dmg
file
to the Downloads folder on your Macintosh.
(On PC, it’s a
.exe
file.)
~
stands for the full pathname of your home directory.
The number 24 is an
API
level.
cd ~/Library/Android/sdk/platforms pwd /Users/myname/Library/Android/sdk/platforms ls -l drwxr-xr-x 14 myname mygroup 476 Jul 28 2016 android-24Why were the components placed in your directory
~/Library/Android/sdk
?
In the Android Studio welcome window,
select
import
statements automatically for you.
Pull down
PATH
environment variable.
Put the following
export
statement into the
.bash_profile
file in your home directory on your Mac.
Each backslash must be the last character on its line.
#Android SDK command-line tools export PATH=\ ~/Library/Android/sdk/tools:\ ~/Library/Android/sdk/platform-tools:\ $PATHOne way to find out if
.bash_profile
already exists,
and to edit it if it does,
is to launch the application
TextEdit
and pull down
.bash_profile
,
change it to a plain text file:
adb
and
sqlite3
from the shell command line:
echo $PATH echo $PATH | tr : '\n' which adb /Users/myname/Library/Android/sdk/platform-tools/adb adb version Android Debug Bridge version 1.0.39 adb help which sqlite3 /Users/myname/Library/Android/sdk/platform-tools/sqlite3 sqlite3 -version 3.16.2 2017-01-06 16:32:41 a65a62893ca8319e89e48b8a38cf8a59c69a8209 sqlite3 -help Usage: sqlite3 [OPTIONS] FILENAME [SQL] etc.
Start looking at the apps we will do in class.