Android
| Installing | New Server | Mrepo | smartd | RAID | Hardening | YUM | Crontabs | LogWatch | systemctl | firewalld | CentOS 7 | |
|
Apache | Bind | Cacti | DHCP | mariadb | Samba | Sarg | Sendmail | Smokeping | Rsync | Work Apps | |
| Problems | VPN | VPN Win | Extras | Bash | MailScanner | Horde | Google CE | Wake Up | KVM | |||
| Other | Computer Lab | ISO2USB | aiContact | Google CE | Android | USB Live | SRS XML |
Contents
Things that made me pull my hair out
SettingsActivity extends PreferenceActivity
Writing Android Apps
Setting up Centos 7
Download the Android Studio android-studio-ide-141.2178183-linux.zip from https://developer.android.com/training/basics/firstapp/index.html
Then install in your development area as user not root.
mkdir ~./android cd ~./android unzip ../Downloads/android-studio-ide-141.2178183-linux.zip
to run Android Studio
cd ~./android/android-studio/bin ./studio.sh
Java missing
JDK Required: 'tools.jar' seems to be not in Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.
Checking
rpm -qa|grep jdk java-1.7.0-openjdk-1.7.0.79-2.5.5.2.el7_1.x86_64 java-1.7.0-openjdk-headless-1.7.0.79-2.5.5.2.el7_1.x86_64 java-1.6.0-openjdk-1.6.0.35-1.13.7.1.el7_1.x86_64
To fix this
yum install java-1.7.0-openjdk-devel
Or as root
alternatives --config java
There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- 1 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/jre/bin/java *+ 2 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-2.b15.el7_2.x86_64/jre/bin/java
Enter 1 to make 1.7.0 default
Now try
./studio.sh
Choose the bottom option, [OK]
[Next], Standard, [Next], Emulator Setting
http://developer.android.com/tools/devices/emulator.html#vm-linux our KVM installation procedure. [Next], we will now do a rather extensive download. [Finished]
Issues
yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
Starting Android Studio
Making a Desktop Icon
Making a Menu Item
First Application
Be Patient
When you start your first application, I have found that it takes quite some time for all the application indexing to do it's thing before we can really do anything.
Once all the start up activities have finished there are a few things that we want to do:
SDK Manager
https://developer.android.com/tools/help/sdk-manager.html
As a general run I have download the following SDKs, as time goes on few of these will be needed.
- Did you find this page useful?
- Do you have an issue that you have not yet fixed?
We can do this for you.
I am available for technical support. Please follow this link. Tech Support Request.
+64-6-880-0000 : ++1-808-498-7146 : help@ai.net.nz
Getting us to help you







