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