четверг, 26 сентября 2013 г.

Android Studio & NDK

Today I started investigating of features of native library. I used this tutorial: http://www.ntu.edu.sg/home/ehchua/programming/android/Android_NDK.html. As usually I used Android Studio (Ubuntu) and encountered the problem.

Caused by: java.lang.UnsatisfiedLinkError: Cannot load library

воскресенье, 22 сентября 2013 г.

Error android studio after update to 0.2.9

After updating studio via Check for updates and downloading patch I was getting this error during creating new project:

The following dependencies were not resolvable. See your build.gradle file for details.- com.android.support:appcompat-v7:18.0.0

    The old projects weren't opened as well. After some googling I didn't found the complete answer how to solve it on Ubuntu or found ways didn't help.
Then I removed whole android-studio. Download the latest package (it was 0.2.x) and extract it as usual. But the problem was't solved anyway.

    As this problem should be solved quickly I decided to remove all settings of android studio. In my case it was placed under ~/.AndroidStudioPreview.

cd ~/
rm -rf .AndroidStudioPreview/
rm -rf ~/Desktop/android-studio/  - removed android-studio again as it was placed on Desktop


Then extract android-studio again. This time studio has downloaded required files from gradle by herself. After that I was able to create new projects. Hope update to 0.2.9 goes smoothly.