Caused by: Error: ' ' is not a valid resource name character
產生過程
從GitHub上clone了一個專案,匯入AS執行就產生這個錯誤,如下圖
好吧,翻譯一下,大概意思是,空格不是有效的資源命名字元,就是說專案裡某些字元名字引用包含了空格,在as編譯裡是不允許的。
解決辦法
根據上圖的錯誤提示找到並開啟相應value資料夾下的相應檔案(可能是string.xml或者attrs.xml等value檔案),替換掉空格就行,如下圖
ps:檔案內容太多不好找怎麼辦?Ctrl+F一鍵查詢替換,like this
相關文章
- fatal: Not a valid object name: 'master'ObjectAST
- error: '[class name]' does not name a typeError
- Error-Expected resource of typeError
- error :does not name a typeError
- error: 'cout' does not name a type|Error
- A resource type with the name 'ora.daemon.type' is already registered
- Software caused connection abort: socket write error/mysql/tomcatErrorMySqlTomcat
- [Jenkins]Error:403 No valid crumb was included in the requestJenkinsError
- ScalaSigParserError: Unexpected error: Not a valid class fileError
- The addressing-1.5.mar module, which is not valid, caused null java.lang.ExceptionInInitializerErrorNullJavaExceptionError
- Linux Error: 11: Resource temporarily unavailableLinuxErrorAI
- Get "ORA-29275: partial multibyte character" errorError
- error: ‘xxx’ does not name a typeError
- Error creating bean with name ‘dataSource‘ErrorBean
- error: ‘變數名‘ does not name a type|Error變數
- emulator: ERROR: unknown virtual device nameErrordev
- E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packagesErrorPackage
- an error has occurred. - no valid devices were found...Errordev
- IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokensExceptionHTTP
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- Error creating bean with name 解決ErrorBean
- 進行遠端連線一個 appium server 時報 not map to a valid resourceAPPServer
- ogg報錯error 11, Resource temporarily unavailableErrorAI
- rhel5_oracle10g_10.2.0.4_字符集character set_nls_valid_valueOracle
- DataPump Export (EXPDP) Fails With Error LPX-216 Invalid CharacterExportAIError
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQLMySqlJDBCExceptionError
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- 【故障處理】ORA-65500: could not modify DB_UNIQUE_NAME, resource exists
- 解決程式中Error creating bean with name 'XXXXX‘ defined in class path resource [application的異常ErrorBeanAPP
- FILE ON OCFS CANNOT BE DELETED LINUX ERROR: 16: DEVICE OR RESOURCE BUSYdeleteLinuxErrordev
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- 登陸peoplesoft報:Site name is not valid. Check your url syntax and try again.AI
- 安裝benchmarksql報java:143: error: unmappable character for encoding ASCIISQLJavaErrorAPPEncodingASCII
- Error creating bean with name 'tomcatEmbeddedServletContainerFactory'ErrorBeanTomcatServletAI
- ndk編譯錯誤:error: 'override' does not name a type編譯ErrorIDE
- Error creating bean with name 'memcachedClient'...java.lang.OutOfMemoryErrorErrorBeanclientJava
- Error: The cluster is not configured or is not running on node NODE_NAMEError
- INS-40904 ORACLE_HOSTNAME Does not Resolve to a Valid Host Name [ID 1281039.1]Oracle