rs-pro / react-native-tinkoff-asdk

Обертка React Native для приема платежей Tinkoff (tinkoff acquiring sdk for react native)
MIT License
10 stars 3 forks source link

Не собирается проект #5

Open VasyaSmolyar opened 4 years ago

VasyaSmolyar commented 4 years ago

Проект на React Native 0.63.3 с версией данной библиотеки 0.5.4 при react-native run-android выдает такое:

Task :app:processDebugManifest FAILED

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings 29 actionable tasks: 29 executed /app/android/app/src/debug/AndroidManifest.xml:11:7-34 Error: Attribute application@allowBackup value=(false) from AndroidManifest.xml:11:7-34 is also present at [ru.tinkoff.acquiring:ui:1.7.3] AndroidManifest.xml:14:9-35 value=(true). Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:7:5-117 to override.

FAILURE: Build failed with an exception.

BUILD FAILED in 28m 41s

В build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 19 compileSdkVersion = 29 targetSdkVersion = 29 } repositories { google() jcenter() } dependencies { classpath("com.android.tools.build:gradle:3.5.3") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

allprojects { repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") }

    google()
    jcenter()
    maven { url 'https://www.jitpack.io' }
}

}

paufau commented 3 years ago

Чтобы собрать проект нужно добавить в файле AndroidManifest.xml в тэг manifest строку xmlns:tools="http://schemas.android.com/tools" и в тэг application строку tools:replace="android:allowBackup"