Android 渲染过程中引发异常:java.lang.System.arraycopy([CI[CII)V 异常详细信息记录在窗口 > 显示视图 > 错误日志中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25636400/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V Exception details are logged in Window > Show View > Error Log
提问by Siddesh B S
I can't find any other android API in the project. it is showing only API 20 Android 4.4W. how do i overcome from it?
我在项目中找不到任何其他 android API。它仅显示 API 20 Android 4.4W。我如何克服它?
回答by Karan Rampal
The issue is because you are using the API level 20 for wearable devices. You need to download other sdk through the Android SDK Manager.
问题是因为您将 API 级别 20 用于可穿戴设备。您需要通过Android SDK Manager 下载其他sdk。
In Eclipse, open windows->android sdk manager->select Android 4.4.2 and check Android sdk and ARM system image and click install packages
在Eclipse中,打开windows->android sdk manager->选择Android 4.4.2,勾选Android sdk和ARM系统镜像,点击安装包
Now you have the API level 19 source code so eclipse will now be able to render the views
现在您拥有 API 级别 19 源代码,因此 Eclipse 现在将能够呈现视图
Now go to the graphical layout tab of the layout and change the android version from 20 to 19.
现在转到布局的图形布局选项卡,将 android 版本从 20 更改为 19。
回答by Sabri Mevi?
In Android Studio
you just need to change your graphical layout API
from 4.4w
to 4.4.2
as in the picture below.
在Android Studio
你只需要你的改变graphical layout API
,从4.4w
以4.4.2
在下面的图片。
回答by Vinod Joshi
Within the eclipse you can change the API version of the design layout. This worked for me.
在 Eclipse 中,您可以更改设计布局的 API 版本。这对我有用。
回答by sansalk
If you using Android Studio 1 Open your Build.gradle 2 change values as you need like this
如果您使用 Android Studio 1 打开您的 Build.gradle 2 更改您需要的值,如下所示
android { compileSdkVersion 17 buildToolsVersion '19.1.0'
defaultConfig { applicationId "com.example.xxx.xxxx" minSdkVersion 16 targetSdkVersion 17 versionCode 1 versionName "1.0" }
android { compileSdkVersion 17 buildToolsVersion '19.1.0'
defaultConfig { applicationId "com.example.xxx.xxxx" minSdkVersion 16 targetSdkVersion 17 versionCode 1 versionName "1.0" }
3 press Sync Project with gradle file.. 4 if you do not have that API it will ask you to download.. rebuild the project..
3 按 Sync Project with gradle file.. 4 如果你没有那个 API,它会要求你下载..重建项目..