I've just installed Android Studio 1.2.1.1 and I'm getting this error on the main activity xml layout file:
我刚安装了Android Studio 1.2.1.1,我在主活动xml布局文件中遇到此错误:
java.lang.AssertionError at android.content.res.BridgeResources.getInteger(BridgeResources.java:435) at android.view.ViewConfiguration.<init>(ViewConfiguration.java:307) at android.view.ViewConfiguration.get(ViewConfiguration.java:364) at android.view.View.<init>(View.java:3587) at android.view.View.<init>(View.java:3682) at android.view.ViewGroup.<init>(ViewGroup.java:497) at android.view.ViewGroup.<init>(ViewGroup.java:493) at android.view.ViewGroup.<init>(ViewGroup.java:489) at android.view.ViewGroup.<init>(ViewGroup.java:485) at android.widget.FrameLayout.<init>(FrameLayout.java:103)
3 个解决方案
#1
0
I am also getting the problem. People say that it's a bug in gradle. Removing component tag from yourproject.iml files is a solution I found. It didn't work for me but hope works for you.
我也遇到了问题。人们说这是一个混乱的错误。从myproject.iml文件中删除组件标记是我找到的解决方案。它不适合我,但希望对你有用。
#2
0
I had this problem and it was because i downloaded Android Studio and automatically believed the Android SDK would be installed (Like stated on their website), however my installation provided nothing but files with a file size of 0KB in the SDK Folder. I then downloaded the Standalone SDK Tools from the same website and installed them that way... Works perfectly fine now, hope i helped :)
我遇到了这个问题,因为我下载了Android Studio,并自动相信会安装Android SDK(如他们网站上所述),但是我的安装只提供了SDK文件夹中文件大小为0KB的文件。然后我从同一个网站下载了独立SDK工具并以这种方式安装它们......现在工作完全正常,希望我帮助:)
#3
0
It seems to be something with rendering layouts using API 22. When I choose API 21 or 19 as the rendering version, it works perfectly.
它似乎是使用API 22渲染布局的东西。当我选择API 21或19作为渲染版本时,它完美地工作。
#1
0
I am also getting the problem. People say that it's a bug in gradle. Removing component tag from yourproject.iml files is a solution I found. It didn't work for me but hope works for you.
我也遇到了问题。人们说这是一个混乱的错误。从myproject.iml文件中删除组件标记是我找到的解决方案。它不适合我,但希望对你有用。
#2
0
I had this problem and it was because i downloaded Android Studio and automatically believed the Android SDK would be installed (Like stated on their website), however my installation provided nothing but files with a file size of 0KB in the SDK Folder. I then downloaded the Standalone SDK Tools from the same website and installed them that way... Works perfectly fine now, hope i helped :)
我遇到了这个问题,因为我下载了Android Studio,并自动相信会安装Android SDK(如他们网站上所述),但是我的安装只提供了SDK文件夹中文件大小为0KB的文件。然后我从同一个网站下载了独立SDK工具并以这种方式安装它们......现在工作完全正常,希望我帮助:)
#3
0
It seems to be something with rendering layouts using API 22. When I choose API 21 or 19 as the rendering version, it works perfectly.
它似乎是使用API 22渲染布局的东西。当我选择API 21或19作为渲染版本时,它完美地工作。