First build with AndroidStudio failed

I am new to Android programming and I would like to use Android Studio to get started. I downloaded and installed AndroidStudio 0.8.0 on my Ubuntu 14.04 computer. I also configured Java correctly. When I create a new project (as http://developer.android.com/training/basics/firstapp/creating-project.html says), it looks like it will try to collect sample files. But then I always get this error:

/home/daniel/AndroidStudioProjects/Heimweg/app/src/main/res/drawable-xhdpi/ic_launcher.png Error:Error: Cannot run program "/home/daniel/android/android-studio/sdk/build-tools/android-4.4W/aapt": error=2, No such file or directory Error:Execution failed for task ':app:mergeDebugResources'. 

/home/daniel/AndroidStudioProjects/Heimweg/app/src/main/res/drawable-xhdpi/ic_launcher.png: Error: Cannot start the program "/ home / daniel / android / android-studio / sdk / build-tools / android -4.4W / aapt ": error = 2, There is no such file or directory

How can I handle this error? When I try to start the application, it says: "ADB is not responding. You can wait more or kill the adb process manually and click" Restart ""

+7
java android android-studio
source share
2 answers

In Android applications, you need to install 32-bit compatibility libraries. I had the same problem and it worked for me:

 sudo apt-get install libc6-i386 lib32stdc++6 \ lib32gcc1 lib32ncurses5 lib32z1 

Then restart Android Studio.

+18
source share

It looks like the SDK does not contain all the components!

To fix this, in Android Studio go to Tools โ†’ Android โ†’ Android SDK Manager

I would install Android SDK Tools, Android SDK Platform-Tools and Android 4.4 files (and others as you plan to develop)

Hope this helps! Here is some link to the pictures if you need more help: http://developer.android.com/tools/help/sdk-manager.html

EDIT: I'm sorry! I should have carefully read your mistake. Android 4.4W seems to be related to Android Wear .

Make sure that when you create the project, you donโ€™t have Android Wear selected on the SDK selection screen (as shown below)

Select project compatibility

Alternatively, you can also reopen the Android SDK Manager and install the Wear SDK. In the SDK Manager, it is under Android 4.4W (API 20) , install the SDK Manager and two System Images

+2
source share

All Articles