android studio问题rendering problems no render target selected

activity_main.xml选择Design显示rendering problems no render target selected

在stackOverflow上找到了答案:

You need to run the AVD Manager to add a virtual device that matches the target API version your project is set to.

Click Tools->Android->AVD Manager. Click on ‘New‘, add virtual devices targeting higher API levels, e.g 18, 19, etc.

Then restart Android Studio, and open your project, it should find a target device to allow you access to the Design view.

就是新建一个虚拟机,api选择高点,我选的21,重启成功。。。

时间: 2024-10-29 10:46:12

android studio问题rendering problems no render target selected的相关文章

android studio中rendering problems解决方法

android studio中xml不能preview 打开res/values/styles.xml ,如下: <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> </style> 把Theme.

Android Studio 之 no render target selected

今天第一次使用android studio,莫名其妙出现 no render target selected的错误,没有设计界面,各种百度之后在stackoverflow.com/questions/22776653/no-rendering-target-selected-using-android-studio 找到了答案,I solved it with File -> Invalidate Caches/Restart. 虽然解决了还是莫名其妙,猜测原因可能是,在安装完Android S

android studio的模拟器waiting for target device to come online原因

android studio的模拟器一直waiting for target device to come online,demo也运行不上去 如图所示: 你很可能运行的android 6.0 (API 23)模拟器 解决方案就是你先打开模拟器,再把运行项目就好了,或者模拟器开了再直接重启android studio.android 6.0就是会出现这个bug,而且经常出现,android 5.1(API 22)和android 7.0(API 24)和android API 28等其他的基本不

[转]【android studio】解决layout预览出现Rendering Problems Exception Unable to find the layout for Action Bar.

在android studio中打开layout文件,发现不能预览布局,提示以下错误: Rendering Problems Exception raised during rendering: Unable to find the layout for Action Bar. 解决办法:切换到design视图,选择低一点的api版本即可.

android studio新建hello world时出现Rendering Problems

The following classes could not be instantiated:        - android.support.v7.internal.widget.ActionBarOverlayLayout java.lang.ClassNotFoundException: android.support.v4.view.ViewPropertyAnimatorListener    at org.jetbrains.android.uipreview.ModuleCla

解决android studio项目中Failded to sync Gradle project &#39;XXXX&#39; Cause:failed to find target with hash string &#39;android-16&#39;问题

之前在github上通过import module导入一个项目,结果报错,提示找不到sdk相应的版本xx,而我的compileSdkVersion明明写的是23不是xx,查了半天也没解决.最后只好下载了那个版本的sdk. 今天导入SlidingMenu的module的时候,又遇到了这个问题.  问题: Cause:failed to find target with hash string 'android-16' in: E:\sony\Android\sdk failed to find B

the rendering library is more recent than your version of android studio

最近更新了自己Android Studio中的SDK到最新版本,AS的一部分配置修改了. 然后 在打开布局文件的时候 会出现 渲染错误 Rendering problem the rendering library is more recent than your version of android studio 提示:如上所示.这个是由于更新了SDK之后渲染版本自动改变了,当前工程的配置的版本与渲染设置的版本不同. 解决办法如下. 打开任意布局文件,切换到Design视图 点击如图所示的图标

Rendering Problems: No Android SDK found. Please configure an Android SDK. 怎解决?

Rendering Problems No Android SDK found. Please configure an Android SDK.

Android studio 3.1.3真机调试报错,no target device found

Android studio 3.1.2 的 Android monitor 改为 Android profiler,直接点这个就可以真机调试,在手机安装相应app 如果不行,报错,"no target device found",点一下右下角这个初始化 adb,再运行即可 原文地址:https://www.cnblogs.com/ichenwin/p/10992355.html