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.+'
}