0

I just moved to new Ubuntu and, thus, installed the last java version which is 8 (or 1.8). I also installed Android Studio 0.5.7. However, Dalvik doesn't support Java 8, does it? I want to keep the current java 8 installed because I'm going to use it in Java projects but I also have to install Java 7 to be able to use it in Android. What's the right way to do this?

UPDATE:

The errors:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find any version that matches com.android.support:appcompat-v7:+.
     Required by:
         MyApplication:app:unspecified

#app/build.grandle

apply plugin: 'android'

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.3"

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:+'
    compile fileTree(dir: 'libs', include: ['*.jar'])
}
Incerteza
  • 32,326
  • 47
  • 154
  • 261

1 Answers1

0

error

Could not find any version that matches com.android.support:appcompat-v7:+.

is answered in Android Studio could not find any version that matches com.android.support:appcompat-v7:+

i.e in SDK Manager install/update Extras / Android Support Repository to use this dependency.

Community
  • 1
  • 1
Paul Verest
  • 60,022
  • 51
  • 208
  • 332