【发布时间】:2016-08-12 17:56:29
【问题描述】:
我刚开始使用 android studio,安装并创建了一个新项目。
创建了一个空活动,当我转到 app>res>layout>activity_main.xml 时,我看不到预览。它说 -> 渲染问题无法加载平台渲染库
我尝试通过单击上面的 android 来更改 API 级别,尝试过-> 24,22,18 但它们都给了我同样的错误。!
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.app.myfirstapp.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</RelativeLayout>`
渲染在 Eclipse 中运行良好,那么为什么不能在 Android Studio 中呢? 我正在使用 Android Studio v2.1,SDK Tools-> 25.2.1 rc1,Android 平台版本:API 22:Android 5.1 (Lollipop) 修订版 2
这是 activity_main.xml 文件,有什么帮助
任何帮助将不胜感激!
【问题讨论】:
-
如果您认为 Android Studio 存在错误,请在此处提交错误报告:source.android.com/source/report-bugs.html
-
它可能对其他人有用,所以不是错误。需要帮助!
-
您需要什么样的帮助?它对你不起作用,所以它可能是一个错误。
-
尝试更新到最新稳定的2.1.2版本。
-
@sJy 我已经在使用最新版本了。
标签: android android-studio android-sdk-tools