Obtain the crash logs via Android Studio
From our past experience, the data provided by logs created with other applications (installed on the device) does not provide an accurate and full device and app information.
Firstly, you will need to install Android Studio for Linux (note you will need approximately 1.5gb free space on your computer)
http://developer.android.com/sdk/index.html?hl=sk
1. From the above link, click on the green “Download Android Studio” button2. Make sure you read the terms and conditions, then tick the checkbox before downloading the application
3. Download the file appropriate for your Linux os. Ex:
Linux x64 |
172.84 MB |
4. Unzip the downloaded content in the Desktop folder.
- Open terminal application (CTRL+ALT+T)
5. Cd into the /BIN directory inside the unzipped content (MainDir/Desktop/adroid-studio/bin
6. Run the .sh executable ( ./studio.sh)
7. Notice the error displayed(JDK and JRE need to be installed and configured)
8. Launch another Terminal
9. Install JDK using the following commands in terminal:
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update && sudo apt-get install oracle-jdk7-installer
10. After installation you have to enable JDK:
- update-alternatives --display java
11. Check if Ubuntu uses Java JDK 7
- java -version
- If all went right the answer should be something like this:
- java version “1.7.0_25″ Java(TM) SE Runtime Environment (build 1.7.0_25-b15) Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)
12. Check what compiler is used
- javac -version
- It should show something like this
- javac 1.7.0_25
13. Add JAVA_HOME to the environment variable
- Edit /etc/environment and add JAVA_HOME=/usr/lib/jvm/java-7-oracle to the end of the file
- sudo nano /etc/environment
- Append to the end of the file
- JAVA_HOME=/usr/lib/jvm/java-7-oracle
14. Get back to the first instance of the Terminal application and re-run the last command(/.studio.sh).
15. Launch Android Studio after the setup is finished.
16. After the project has been set up, click on the Android Device Monitor icon in the toolbar:
17. Connect your Android device to your Linux machine using a USB cable.
18. Optionally, for ease of access, pin the Android Device Monitor app in the launch-bar
Comments
0 comments
Article is closed for comments.