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 creating bean with name 'XXXXX‘ defined in class path resource [application的異常ErrorBeanAPP
- Error-Expected resource of typeError
- error: 'cout' does not name a type|Error
- error: ‘xxx’ does not name a typeError
- Error creating bean with name 'tomcatEmbeddedServletContainerFactory'ErrorBeanTomcatServletAI
- Error creating bean with name ‘dataSource‘ErrorBean
- The addressing-1.5.mar module, which is not valid, caused null java.lang.ExceptionInInitializerErrorNullJavaExceptionError
- Error creating bean with name 解決ErrorBean
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packagesErrorPackage
- IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokensExceptionHTTP
- ogg報錯error 11, Resource temporarily unavailableErrorAI
- error: ‘變數名‘ does not name a type|Error變數
- DataPump Export (EXPDP) Fails With Error LPX-216 Invalid CharacterExportAIError
- 安裝benchmarksql報java:143: error: unmappable character for encoding ASCIISQLJavaErrorAPPEncodingASCII
- 進行遠端連線一個 appium server 時報 not map to a valid resourceAPPServer
- ERROR:Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODINGErrorAIEncoding
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- 【故障處理】ORA-65500: could not modify DB_UNIQUE_NAME, resource exists
- 已解決:Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 問題
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQLMySqlJDBCExceptionError
- QT中error: xxx does not name a type xxx錯誤QTError
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- Error creating bean with name ‘dataSource‘: Unsatisfied dependency expressed through fieldErrorBeanExpress
- [kubernetes]Error from server (BadRequest):container install-cni is not valid for pod kube-dnsErrorServerAIDNS
- brew 報錯 error: Not a valid ref: refs/remotes/origin/master 的解決方法ErrorREMAST
- Android之NDK開發錯誤 error: unknown type name 'JNIEXPORT'AndroidErrorExport
- 小程式 · 報錯:Error: errCode: -501007 ,errMsg: Invalid Key Name (__keyPath)Error
- 異常解決——Spring Cloud FeignClient: BeanCreationException: Error creating bean with name XXXServiceSpringCloudclientBeanExceptionError
- 關於報錯Error creating bean with name 'xxxxx': Invocation of init method....ErrorBean
- 查LOB文字內容報錯ORA-06502: numeric or value error: character string buffer..Error
- Jenkins 郵件配置 || Jenkins 傳送郵件失敗,提示:Error sending to the following VALID addressesJenkinsError
- 異常錯誤 spring boot框架與Redis整合Unexpected character(‘≣‘ (code 8803 / 0x2263): expected a valid value...報錯Spring Boot框架Redis
- Caused by: android.os.Android
- python character stringPython
- CSS content character ACSS
- Character Specifications for A Word