【问题标题】:Rendering Problems in Intellij 13.1.3,there is only API 20 in "Android version to use when rendering layouts in the IDE"Intellij 13.1.3 中的渲染问题,“在 IDE 中渲染布局时使用的 Android 版本”中只有 API 20
【发布时间】:2015-10-05 03:11:36
【问题描述】:

我看了这个答案Rendering issue for Android with Intellij 13.1.3,但是只有API 20,不能设置低版本

我的项目 AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.example.myapp"
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0">

<uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="16"/>
<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name">
    <activity
        android:name="MyActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
</application>

我错过了什么吗?

【问题讨论】:

    标签: android intellij-idea


    【解决方案1】:

    您没有其他 SDK。
    要下载它们,请从 Android Studio 打开 SDK 管理器,然后下载 Android 4.4.2 (API 19)

    【讨论】:

    • 谢谢,真的很有用
    【解决方案2】:

    这正是我所做的,我下载了早期的 SDK,但下拉菜单中没有出现任何新内容。我可以在项目设置中更改目标 android 版本,但这并不能解决布局问题。

    我只有 API 23 可供选择,别无选择。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-20
      • 1970-01-01
      • 1970-01-01
      • 2019-12-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多