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.
Also 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
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.
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\
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With