Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rendering issue for Android with Intellij 13.1.3

When viewing the preview of the (only) activity in my Android app in IntelliJ 13.1.3 I get the following error:

Rendering Problems This version of the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA

Any ideas of where I'm going wrong? Here is what I did:

  • Installed IntelliJ 13.1.3 Ultimate edition.
  • Mapped Android SDK.
  • Verified that IntelliJ is pointing to the the correct installation of the Android SDK.
  • Created new Android module using 'Gradle: Android Module'.
  • Verified that module compiled fine.

Note: I have tried build tools version 19, 19.0.1, 19.1 and 20.

My build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
       classpath 'com.android.tools.build:gradle:0.9.+'
    }
}
apply plugin: 'android'

repositories {
    mavenCentral()
} 

android {
    compileSdkVersion 19
    buildToolsVersion "19.1"

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

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:19.+'
}
like image 839
Eric Of Mecklenburg Avatar asked Jun 30 '14 03:06

Eric Of Mecklenburg


1 Answers

Check that the API rendering is set lower than 20. This is different from the build SDK.

In the preview window the rendering API icon is an android with a number next to it, in this case it would be the number 20, it's usually the last icon of the first row in the preview window.

like image 94
Eldin Avatar answered Oct 03 '22 18:10

Eldin