The project target (Android N (Preview)) was not properly loaded.

在创建一个Android项目的时候,activity_main.xml 显示不出来项目的效果,找了一下原因,版本要求可能要JDK7才行,版本太低不支持;

解决方案:
1.你可以在preference->java 把版本提高;

2.把这里错误显示的版本(我这里是AndroidN)改成其他版本就可以显示出来了;

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Key Features Move beyond default UI templates, create and customize amazing UIs with Android Custom View Enable smooth data flow and create futuristic UIs by creating flexible custom views Scale your apps with responsive and data intensive views Book Description To build great user interfaces for your Android apps that go beyond the standard UI elements, you need to use custom Android views. With these, you can give your app a distinctive look and ensure that it functions properly across multiple devices. This book will help you construct a great UI for your apps by teaching you how to create custom Android views. You will start by creating your first Android custom view and go through the design considerations. You will then see how the right choices will enable your custom view to perform seamlessly across multiple platforms and Android versions. You will create custom styleable attributes that work with Android XML layouts, learn to process touch events, define custom attributes, and add properties and events to them. By the end of this book, you will be able to create apps with custom views that are responsive and adaptable to make your app distinctive and an instant hit with its users. What you will learn Extend the standard UI widget framework by creating Custom views Add complex rendering, animations, and interactions to your views Optimize performance and decrease battery usage Implement custom views to share between multiple projects, or share it publicly Create 3D custom views using OpenGL ES Table of Contents Chapter 1. Getting Started Chapter 2. Implementing Your First Custom View Chapter 3. Handling Events Chapter 4. Advanced 2D Rendering Chapter 5. Introducing 3D Custom Views Chapter 6. Animations Chapter 7. Performance Considerations Chapter 8. Sharing Our Custom View Chapter 9. Implementing Your Own Epg Chapter 10. Building A Charts Component Chapter 11. Creating A 3D Spinning Wheel Menu

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值