S
S
Shane Matte2018-03-22 16:25:37
Android
Shane Matte, 2018-03-22 16:25:37

Can't build a react native project?

Good evening everyone. Unable to build project. Mistake

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#[email protected] value=(26.0.1) from [com.android.support:recyclerview-v7:26.0.1] AndroidManifest.xml:25:13-35
        is also present at [com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
        Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:23:9-25:38 to override.

build.gradle
dependencies {
    implementation project(':react-native-video')
    implementation project(':react-native-spinkit')
    implementation project(':react-native-push-notification')
    implementation project(':react-native-orientation')
    implementation project(':react-native-onesignal')
    implementation project(':react-native-fbsdk')
    implementation project(':react-native-appodeal')
    implementation project(':react-native-adjust')
    implementation "com.android.support:recyclerview-v7:26.0.1"
    implementation 'com.android.support:appcompat-v7:26.0.1'
    implementation 'com.google.android.gms:play-services:11.8.0'
    implementation 'com.facebook.fresco:animated-base-support:1.3.0'
    implementation 'com.facebook.fresco:animated-gif:1.3.0'
    implementation 'com.android.installreferrer:installreferrer:+'
    implementation 'com.android.support:multidex:1.0.1'
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.facebook.react:react-native:+'
    // From node_modules
}

apply plugin: 'com.google.gms.google-services'

AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.app"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <uses-sdk
      android:minSdkVersion="16"
      android:targetSdkVersion="27" />

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:allowBackup="false"
      android:theme="@style/AppTheme">

      <receiver
          android:name="com.adjust.sdk.AdjustReferrerReceiver"
          android:exported="true" >
          <intent-filter>
              <action android:name="com.android.vending.INSTALL_REFERRER" />
          </intent-filter>
      </receiver>

      <meta-data 
        android:name="com.facebook.sdk.ApplicationId" 
        android:value="@string/facebook_app_id"
      />

      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:launchMode="singleTop"
        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>

Already tried everything, nothing comes out.
But the funny thing is that I have never had such a problem, just yesterday I was sitting, working calmly,
and today I decided to fray my nerves.
Tell me how to deal with this tumor? I don't know what to do anymore.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Resolved the issue. https://medium.com/@suchydan/how-to-solve-google-p...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shane Matte, 2018-03-22
@mattedev

Resolved the issue. https://medium.com/@suchydan/how-to-solve-google-p...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question