error: No resource identifier found for attribute 'XXX' in package 'XXX'
Save the XML file to
“ http://schemas.android.com/apk/res-auto " changed to
" http://schemas.android.com/apk/lib/com.app.chasebank "
I directly used Android killer for back compilation. There were more than 10 errors at once. It was too troublesome to change one by one, so I simply wrote a python script:
import os import re file = "error.txt" def change_content(file): if os.path.exists(file): with open(file) as f: content = f.read() if "http://schemas.android.com/apk/res-auto" in content: print(file+":已修复") content = content.replace("http://schemas.android.com/apk/res-auto","http://schemas.android.com/apk/lib/com.app.chasebank") with open(file,"w") as f: f.write(content) with open(file,encoding='utf8') as f: data = f.read() result = re.findall(">W: (.*?):\d+: error: No resource identifier found for attribute",data) for file in result: change_content(file)
Copy the error to the error.txt file, and then run the script to modify the XML file directly.
Sometimes, such errors will appear in the back compilation. You may need to copy the errors again and then execute the script. That is to say, some errors are not reported because the previous errors have not been solved, and all such errors cannot be reported at one time.
- Flash back problem when Android studio plays music in sdcard through intent
- [Solved] k8s Error: Back-off restarting failed container
- Kettle Flash Back Error:The graphical interface cannot be opened. There is an ETI installation problem
- [Solved] pod Error: back off restarting failed container
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang
- Hbase Shell startup error: [ERROR] Terminal initialization failed; falling back to unsupported
- The use of vue-echarts and compilation error solutions
- How to Solve Nginx cross compilation Error
- Error in loading latex project compilation [How to Solve]
- [Solved] Compilation error: dereferencing pointer to incomplete type…
- Solution of adding H264 error in ffmpeg compilation
- About completionfailedexception: error reported by compilation failed to complete
- Solution: configuration of multiple front ends separated from front end and back end of nginx
- Solution for Visual Studio 2012 compilation error [error C4996:’scanf’: This function or variable may be unsafe.]
- How to Solev QT compilation error “cannot find – LGL”
- [Solved] Android 5.1 code compilation error: Unsupported reloc 43
- [Solved] IntelliJ IDEA Compile Error: Errorjava Compilation failed internal java compiler error
- How to Solve Fatal error stdatomic in C/C++ Compilation
- .NETproject compilation error. Type or namespace name could not be found. Visual studio automatically introduces dependency package (shortcut key)
- [Solved] Android Error: Compilation failed; see the compiler error output for details