Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to open or develop apps in android studio

I just downloaded the android studio for linux

The problem is after i start with a new project, I'm not able to see any activity files.
I have exactly followed the standard instructions for opening a new project.

Here is a screenshot of the projectAlso my sdk manager icon isn't highlighted. Please help



The culprit is probably the following error:

Can't deserialize target data of key 'IdeaAndroidProject'. Given class loaders: [PluginClassLoader[org.jetbrains.android, 10.0]]: Can't deserialize target data of key 'IdeaAndroidProject'. Given class loaders: [PluginClassLoader[org.jetbrains.android, 10.0]]

UPDATE

I tried to install what and all libraries and also did some changes to build.gradle

Libraries I installed:

zlib.i686
libstdc++.i686
ncurses-libs.i686
libgcc.i686
glibc.i686



Code i added to build.gradle:

buildscript
{
    repositories
    {
         mavenCentral()
    }

    dependencies
    {
          classpath 'com.android.tools.build:gradle:0.4'
    }
}
apply plugin: 'android'

repositories {
    mavenCentral()
}

dependencies
{
     compile files('libs/android-support-v4.jar')
     compile 'com.google.code.gson:gson:2.2.4'
}

android
{
     compileSdkVersion 17
     buildToolsVersion "17.0.0"
     defaultConfig
     {
           minSdkVersion 4
           targetSdkVersion 16
     }
}


I finally ended up with one error:

Gradle: A problem occurred evaluating root project 'App1Project'. Gradle version 1.6 is required. Current version is 1.7

like image 447
nj-ath Avatar asked Sep 14 '13 19:09

nj-ath


People also ask

Why my app is not opening in Android Studio?

Unplug your device from the USB port on the computer. Restart the device by powering off and back on. Verify that Settings => Developer options => USB Debugging is enabled. Quit and re-launch Android Studio.

How do I fix Android Studio not working?

Open Start menu > Computer > System Properties > Advanced System Properties In the Advanced tab > Environment Variables. Add new system variable JAVA_HOME that points to JDK folder, C:\Program Files\Java\jdk1. 7.0_13\

Why is my Android Studio emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.


1 Answers

Finally i successfully completed compilation.

I just went for an update from version 0.2.8 to 0.2.9 and emptied build.gradle.
It was probably a bug.

like image 55
nj-ath Avatar answered Oct 11 '22 17:10

nj-ath