[英]eclipse graphical layout not showing anything
I am doing a mobile application on Eclipse and once I re-installed my Android SDK after installation something odd happens when I make an XML and try to view it, via graphical layout it does not show anything and it's hard to make something you can't see. 我正在Eclipse上做一个移动应用程序,一旦我在安装后重新安装我的Android SDK,当我制作一个XML并试图查看它时会发生奇怪的事情,通过图形布局它没有显示任何内容而且很难做出你能做的事情'看。 Here is a print screen of what im saying.
这是我所说的打印屏幕。 What seems to be the problem if the XML is not showing anything?
如果XML没有显示任何内容,那么似乎是什么问题? This is the first time I encountered this and I didn't get results from searching the net.
这是我第一次遇到这个并且我没有从网上搜索结果。 I tried restarting right clicking but nothing happened, saw this one and this one but it's not the same as my problem
我试图重新启动右击,但什么都没有发生,看到了这一个 ,这一个 ,但它是不一样的我的问题
i think i found it. 我想我找到了。 Repository?
库? im updating a lot of repository now hoping to fix the problem
我现在更新了很多存储库希望解决问题
This Question was asked 1 year ago, I am sure that you have get your solution, however I was also facing the same problem but got the solution in eclipse, here it is: 这个问题在1年前被问过,我相信你已经得到了解决方案,但是我也遇到了同样的问题,但在eclipse中得到了解决方案,这里是:
This solved my problem. 这解决了我的问题。 There is no need to change jdk version or your minimum sdk version of your app.
无需更改应用程序的jdk版本或最低sdk版本。
It looks like eclipse is reading all files associated with sdk and that takes some time... Especially if you have lots of stuff in your .xml view 看起来eclipse正在读取与sdk相关的所有文件,这需要一些时间...特别是如果你的.xml视图中有很多东西
Maybe you just need to wait for some time for eclipse to do his job 也许你只需要等待一段时间让eclipse完成他的工作
Did you tried clicking on the layout and doing the following? 您是否尝试过点击布局并执行以下操作?
Open With --> Android Layout Editor or Legacy Android Layout Editor 打开方式 - > Android布局编辑器或旧版Android布局编辑器
This might be happening because the manifest minimum sdk is not support to view the layout.to resolve that change the api level. 这可能会发生,因为清单最小sdk不支持查看布局。解决这个问题会改变api级别。 also you can try using
OpenWith ->Layout Editor
on the xml file which u want to open from project explorer under res folder. 你也可以尝试在xml文件上使用
OpenWith ->Layout Editor
,你想从res文件夹下的项目浏览器打开它。
我面临着同样的问题,但我所做的是将选项从android 22:android(M)预览更改为android 22:android 5.1.1并且您可以通过进入下载菜单进行更改,以便在渲染布局时使用Android版本在eclipse:上面放大和缩小按钮。
Go to the top right corner with a little android icon and in the drop down menu, select a particular Android ab 使用一个小的Android图标转到右上角,然后在下拉菜单中选择一个特定的Android ab
As soon as you click on the API Level, (Example API 22) you will have your graphical layout :) Then you can drag and drop too :D :) 一旦你点击API Level,(例子API 22)你将拥有你的图形布局:)然后你也可以拖放:D :)
I was also facing the same problem. 我也面临同样的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.