Я пытаюсь реализовать заставку в моем приложении React, но во время отладки файл заставки имеет ошибку: ошибка: неправильно сформирован (неверный токен)
<?xml version='1.0' encoding='utf-8' ?>
<layer-list xmlns:='http://schemas.android.com/apk/res/android'>
<item android:drawable='@color/primary' />
<item
android:width='200dp'
android:height='200dp'
android:drawable='@drawable/icon'
android:gravity='center'
/>
</layer-list>
Сообщение об ошибке:
info Starting JS server...
info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
> Task :app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Users\leand\AppTCC\android\app\src\main\res\drawable\background_splash.xml:3: error: not well-formed (invalid token).