ОШИБКА Android-манифеста: не удалось выполнить задачу ‘: app: processDebugResources’. > Сбой связывания ресурсов Android

#javascript #android #react-native

#javascript #Android #реагирует на собственный

Вопрос:

Я получаю эту ошибку при попытке создать приложение с использованием react native с использованием Google Maps. ошибка возникла после редактирования манифеста Android для включения ключа API. Это ошибка

 C:Usersx0zonDocumentsCPTR405carbooking>react-native run-android
info Starting JS server...
info Building and installing the app on the device (cd android amp;amp; gradlew.bat app:installDebug)...
> Task :app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  C:Usersx0zonDocumentsCPTR405carbookingandroidappbuildintermediatesmerged_manifestsdebugAndroidManifest.xml:34: AAPT: error: attribute android:configchanges not found.

  C:Usersx0zonDocumentsCPTR405carbookingandroidappbuildintermediatesmerged_manifestsdebugAndroidManifest.xml:34: AAPT: error: attribute android:windowsoftinputmode not found.

  error: failed processing manifest.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
23 actionable tasks: 1 executed, 22 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.
 

это манифест Android

 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 
  package="com.carbooking">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:allowBackup="false"
      android:theme="@style/AppTheme">
      <meta-data 
        android:name="com.google.android.geo.API_KEY" 
        android:value="API key intentionally removed />
      <activity 
        android:name=".MainActivity" 
        android:label="@string/app_name" 
        android:configchanges="keyboard|keyboardHidden|orientation|screenSize" 
        android:windowsoftinputmode="adjustResize">
        <intent-filter>
          <action android:name="android.intent.action.MAIN" />
          <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>
      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
    </application>

</manifest>
 

Я новичок в react и android studio, и я попробовал некоторые решения, связанные с внесением изменений в версию gradle в build.gradle, и у меня есть одноклассники, использующие тот же файл манифеста Android без проблем. Я потерян и сбит с толку.

Комментарии:

1. Попробуйте очистить проект, используя следующую команду cn android amp;amp; ./ gradlew clean