用的IntelliJ 13.1.3渲染问题为Android [英] Rendering issue for Android with Intellij 13.1.3

查看:98
本文介绍了用的IntelliJ 13.1.3渲染问题为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在的IntelliJ 13.1.3我收到以下错误看在我的Andr​​oid应用程序的(唯一的)活动的preVIEW:

  

渲染问题这个版本的渲染库比你的IntelliJ IDEA的版本更新。请更新的IntelliJ IDEA

我要去哪里错了任何想法?这是我做的:

  • 在安装13.1.3的IntelliJ终极版。
  • 在映射的Andr​​oid SDK。
  • 已验证的IntelliJ是指向正确的安装Android SDK的。
  • 在创建使用摇篮:机器人模块新的Andr​​oid模块。
  • 验证该模块编译的罚款。

注:我曾尝试构建工具的版本19,19.0.1,19.1和20

我的 build.gradle

  buildscript {
    库{
        mavenCentral()
    }
    依赖{
       类路径com.android.tools.build:gradle:0.9.+
    }
}
应用插件:'机器人'

库{
    mavenCentral()
}

安卓{
    compileSdkVersion 19
    buildToolsVersion19.1

    defaultConfig {
        的minSdkVersion 19
        targetSdkVersion 19
        版本code 1
        VERSIONNAME1.0
    }
    buildTypes {
        推出 {
            runProguard假
            proguardFiles getDefaultProguardFile('ProGuard的-android.txt'),'ProGuard的-rules.txt
        }
    }
}

依赖{
    编译文件树(导演:库,包括:['的* .jar'])
    编译com.android.support:appcompat-v7:19.+
}
 

解决方案

检查API渲染设置比20低这是从构建SDK不同。

在preVIEW窗口渲染API图标毗邻它与许多的机器人,在这种情况下,这将是数20,它通常是在第一行的在preVIEW窗口中的最后图标

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

解决方案

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.

这篇关于用的IntelliJ 13.1.3渲染问题为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆