Error when changing Git branch while working in Android Studio, how to fix?

Android Studio 3.1.2
Worked on the project, was replaced by a branch from master for testing, and got a lot of errors what to do?

Android resource linking failed
Output: /home/valentin/Programming/SmartNovotroitsk/app/src/main/res/layout/activity_child__page.xml:36: error: resource string/tab_text_1 (aka com.example.smartnok:string/tab_text_1) not found.
/home/valentin/Programming/SmartNovotroitsk/app/src/main/res/layout/activity_child__page.xml:42: error: resource string/tab_text_2 (aka com.example.smartnok:string/tab_text_2) not found.
/home/valentin/Programming/SmartNovotroitsk/app/src/main/res/layout/activity_child__page.xml:48: error: resource string/tab_text_3 (aka com.example.smartnok:string/tab_text_3) not found.
/home/valentin/Programming/SmartNovotroitsk/app/src/main/res/layout/activity_child__page.xml:54: error: resource string/tab_text_4 (aka com.example.smartnok:string/tab_text_4) not found.
/home/valentin/Programmirovanie/SmartNovotroitsk/app/src/main/res/layout/fragment_fragment1__child.xml:9: error: resource string/fragment1_child (aka com.example.smartnok:string/fragment1_child) not found.
/home/valentin/Programmirovanie/SmartNovotroitsk/app/src/main/res/layout/fragment_fragment2__child.xml:9: error: resource string/fragment2_child (aka com.example.smartnok:string/fragment2_child) not found.
/home/valentin/Programming/SmartNovotroitsk/app/src/main/res/layout/screen_child.xml:8: error: resource string/screen_child (aka com.example.smartnok:string/screen_child) not found.
error: failed linking file resources.

Command: /home/valentin/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/c0cf98eabde217847c0cf89936f4feae/aapt2-3.2.1-4818971-linux/aapt2 link-I\
/home/valentin/Android/Sdk/platforms/android-28/android.jar\
--manifest\
/home/valentin/Программирование/SmartNovotroitsk/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/home/valentin/Programmirovanie/SmartNovotroitsk/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
@/home/valentin/Программирование/SmartNovotroitsk/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/home/valentin/Programmirovanie/SmartNovotroitsk/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--custom-package\
com.example.smartnok\
-0\
apk\
--output-text-symbols\
/home/valentin/Программирование/SmartNovotroitsk/app/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-linux Daemon #0
March 13th 20 at 14:22
0 answer

Find more questions by tags Android StudioVersion control systemsGit