1. 程式人生 > >【常見錯誤】佈局檔案新增edittext報:The following classes could not be found錯誤

【常見錯誤】佈局檔案新增edittext報:The following classes could not be found錯誤

一、問題描述

android專案佈局檔案中,新增edittext後佈局報以下錯誤:

Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V

Exception details are logged in Window > Show View > Error Log

The following classes could not be found:
- EditText (Change to android.widget.EditText, Fix Build Path, Edit XML)

二、原因:

由於安裝的API等級 為API 20:Android 4.4w,這是Android官網釋出的可穿戴裝置的API,它是不支援EditText元件的;

三、解決方案:安裝api19,如果安裝了,將API版本改成19即可。


相關推薦

常見錯誤佈局檔案新增edittextThe following classes could not be found錯誤

一、問題描述 android專案佈局檔案中,新增edittext後佈局報以下錯誤: Exception raised during rendering: java.lang.System.arr

android studio佈局預覽The following classes could not be found錯的問題

本文轉自:http://my.oschina.net/u/2425146/blog/546649?p=1 剛剛進入studio 的小夥伴們遇到很多問題吧,這個是我曾經遇到的問題,希望能幫助大家,如果覺的有幫助您記得給個贊哦 Rendering Problems The f

Rendering Problems The following classes could not be instantiated

clas follow BE div net render spa 文件 them xml 設計時警告 打開es/values/目錄下styles.xml文件。 把:<style name="AppTheme" parent="Theme.AppCompat.L

Android Studio常見錯誤Rendering Problems/The following classes could not be instantiated

被這個問題折磨的差點就要對Android Studio說拜拜了。好在強迫症又犯了,最終把問題解決。 首先詳細描述一下遇到的問題: 在Android Studio Project中新建module時,第一個module一切正常,但建立第二個module開啟XM;佈局檔案時出錯

require sqlite3時報The specified module could not be found.錯誤

平臺 git module 時報 target hub walk require 編譯 http://dependencywalker.com/ 在這個站點下載對應平臺的Dependency Walker,打開你自己編譯好的.node文件(sqlite3\lib\bindi

Hbase異常windows 中使用hbase 異常java.io.IOException: Could not locate executable null\bin\winutils.exe

平時一般是在windows環境下進行開發,在windows 環境下操作hbase可能會出現異常(java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoo

Centos 設定iptables埠轉發 “Unit iptables.service could not be found錯誤

將埠80對映到8080 Centos6 iptables -t net -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080 service iptables save service iptables restart

Docker容器啟動lnmp環境下的mysql服務時報"MySQL server PID file could not be found"錯誤解決辦法

我在自己的mac筆記本上裝了一個docker,並在docker容器中安裝了lnmp環境,經常會遇到在使用"lnmp restart"命令啟動lnmp服務的時候,mysql服務啟動失敗,啟動日誌: Stoping LNMP... Stoping nginx... nginx is not running.

QT筆記qrc檔案新增資源

在剛剛編寫Qt程式時總是會遇到一些瑣碎的問題,但是由於問題太過於簡單在網上又找不到其相應的答案,新手邊學邊記作為自己的錯題筆記吧~ 大家如果按照《Qt學習之路2》來逐步學習Qt5的過程中,在“新增動作”者一部分在圖片顯示上可能會遇到問題,下面就是我的解決辦法: 首先要新建.

SpringBootRestTemplate呼叫'org.springframework.web.client.RestTemplate' that could not be found.

    RestTemplate引入方式為:@Autowiredpublic RestTemplate restTemplate; 時報錯,錯誤資訊如下錯誤:'org.springframework.web.client.RestTemplate' that could n

Eclipse "The builder launch configuration could not be found" 錯誤

jpg triangle port div 鏈接 nds choose rac tag Eclipse 報 "The builder launch configuration could not be found" 錯誤的解決辦法 標簽: eclipseEcli

TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely錯誤解決方法

將一個list矩陣轉化為numpy陣列之後,使用np.isnan()方法,報出了這麼一個錯誤: TypeError: ufunc ‘isnan’ not supported for the input types, and the inputs could not be sa

Unity3D打包發生錯誤 "The type or namespace name `UnityEditor' could not be found"(小心使用)

這句話是說明UnityEditor未發現,主要是某個腳本里寫了關於Editor相關的函式。 首先我們需要知道,使用UnityEditor的時候,一般是在自己專案除錯執行的時候使用,而打包出來生成檔案的時候,這個命令是沒法在檔案中使用的,所以就算不提示錯誤,打包出來也是不能用

Source file 'XXX.cs' could not be found. - 檔案不能被找到

在解決方案中,新建方法類,由於之後不需使用,進行了刪除,但是由於開發工具可能是秀逗了,沒有相應的進行刪除,導致配置檔案還需載入這個類,而我們在解決方案過程中沒辦法找到這個類了。 可以嘗試: 清理解決方案,新建同名類檔案,再將檔案進行排除,重新生成檔案 關閉解決方案,重啟專案

遇到的問題---mysql 啟動錯誤-server PID file could not be found

[[email protected] var]# service mysqld stop MySQL manager or server PID file could not be found!       [FAILED] 解決辦法: 首先檢視一下程序 [[em

CentOS hadoop啟動錯誤 JAVA_HOME is not set and could not be found

... Starting namenodes on [] localhost: Error: JAVA_HOME is not set and could not be found.localhost: Error: JAVA_HOME is not set and cou

ActiveMQ could not be locked錯誤

本機啟動Active之後日誌列印輸出提示could not be locked 糾結了一下,就試著把/data/kahadb目錄下db.*檔案刪除,刪除不了提示被佔用中, 檢視工作管理員原來ActiveMQ自動啟動了個java.exe程序 後面網上搜索了下原因:因為

關於oracle developer顯示 IO錯誤The Network Adapter could not establish the connection解決辦法

在用oracle視覺化介面 sql developer測試連線的時候總是報IO錯誤:The Network Adapter could not establish the connection 這個錯,最開始我找了一下午都沒有找到真正的解決辦法,百度上的所有方法都試過了,任然

C#作業學生成績新增並排序,錯誤則丟擲異常

using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cons

Android studioR檔案錯誤的解決辦法

我們在使用Android Studio的時候,有時候會無緣無故R檔案錯誤,我們又沒法像elipse一樣去clean工程,出現這樣的問題我們應該怎麼解決呢? 第一步:檢查xml檔案,R檔案錯誤通常是由於我們的xml檔案有問題,首先把xml檔案的錯誤排除掉,然後進行下一步 第二步:MainAc