Error occurring in specific API versions

Asked

Viewed 2,007 times

0

When I create a new project Criando Projeto novo

And I choose the minimum SDK 10 SS

He creates the Android package with the main.java and activy_main.xml (and other things) except that when it compiles the codes of these errors and I do not know why. I tested up to API 16 and ran min SDK without this error. Apis 10, 8, and 7 when creating the project, make this mistake: SS

SS

SS

SDKS TOOLS AND EXTRAS I OWN (ALL INSTALLED BY SDK MANAGER)

inserir a descrição da imagem aqui inserir a descrição da imagem aqui Finishing Installing API 15 inserir a descrição da imagem aqui inserir a descrição da imagem aqui

Build.Radle ( APP )

apply plugin: 'com.android.application'

android { compileSdkVersion 20 buildToolsVersion "21.1.1"

defaultConfig {
    applicationId "com.guga.myapplication"
    minSdkVersion 10
    targetSdkVersion 20
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { Compile fileTree(dir: 'libs', include: ['*.jar']) Compile 'com.android.support:appcompat-v7:21.0.2' }

Build.Radle ("Application Name")

// Top-level build file Where you can add Configuration options common to all sub-Projects/modules.

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:Gradle:0.13.2'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects { repositories { jcenter() } }

  • Which SDK’s have you installed (using SDK Manager)? Also, which Extras you installed? Include this information in your question.

  • Wakim I did use the SDK Manager (I have API 10 16 17 18 19 20 all tools and extras) (Tando the ADT-BUNDLE as the android Studio)I could all the Extras installed... (I will add images now)

  • This excess of images does not hinder the interpretation of the problem, no?

  • Good evening friend, I believe that it does not hinder the images above are those of error and the last 4 are of the files that I owned on my computer...; (I particularly did not find it difficult to understand)

  • Gustavo, unfortunately I’ve been running out of time to see the problem. Looking at the pictures, you did not put the section of Android 5, downloaded too? Like this yours build.gradle? Could include in question (text)?

  • Wakim what would this section of Android 5 ??? Ja put the Build.Radle

  • Gustavo, would be the section with the files of Android 5.0 (21). You expanded all, except this, I could not see if you downloaded the SDK 21 or not.

  • Wakim didn’t own the SDK 21, but I’m already downloading it...

Show 3 more comments

1 answer

1


I am passing to inform you that I managed to solve my problem with the old api in case the 10 that was the one I needed that was giving problem.... I didn’t really understand why of this error, but what solved me the problem was the API 21 (Android 5.0) I did not have it installed on the computer and when I put it stopped giving the errors in api 10 I took the test uninstalling to see if it was really that or something else and that was really my problem, In case anyone has any problem like that what helped me to solve was this.

I thank everyone who tried to help me here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.