I run the project - everything works fine. I change the text in strings , I run to check - it gives an error:

 Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\AutoDeep\Android Studio\Android\sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1 

And underscores R when hovering highlights -> Cannot resolve symbol 'R' .

Build -> Clean Project did not help. After cleaning, restarting did not help either. I start the project before changing the text in string - it works. Change text -> stops working. Returning text to a project that does not work does not help. What it is?

File->InvalidateCahces also did not help.

  • What does strings.xml look like on error? - P. Ilyin
  • He is big enough - Alex
  • Delete parts of the text to calculate the one that caused the error. Here: "<br> <br> <big> <b> <font color =" maroon "> Text </ font> </ b> </ big> <br> <br> & nbsp & nbsp & nbsp TextTextText <b> <i> Text </ i> </ b> and <b> <i> Text </ i> </ b>. TextTextText <b> <i> Text </ i> </ b>, TextTextText. TextTextText. " If you remove this paragraph - everything will work. What is the problem I do not understand. - Alexey
  • I hid the text, but it has two numbers: "85%" and "15%" .. so, if you remove% and do this: "85", and "15%" to leave - everything works. If "%" is returned to "85", then an error. Mystic. - Alexey
  • Please insert a piece of strings.xml with an error without any changes to the question itself, I want to help - P. Ilyin

1 answer 1

Tools → Android → Sync Project with Gradle Files

  • No result. A further restart also did not change. - Alexey
  • And what exactly do you change in strings? - Sergey Gornostaev
  • Between: <string name = "txt_1"> <! [CDATA [and]]> </ string> write text. For example, it was written: "Hello" everything worked. Wrote "Hi, tra ta ta" - stopped working. - Alexey
  • I am somewhat puzzled by the fact that you wrap a simple text like "Hi, tra ta ta" in CDATA, and the rest is mystic, judging by the description. - Sergey Gornostaev
  • I agree. Between <string name = "txt_1"> and </ string> One more tag is obtained - Ziens