playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 961 forks source link

Appodeal + GPG (Unity 2019.4) #2911

Open AlexGames73 opened 4 years ago

AlexGames73 commented 4 years ago

when I install gpg plugin without appodeal, game's build is ok. when I install appodeal without gpg plugin, game's build is ok. when I install both of these, game's build throw an exception. image

I installed Unity IAP as well.

AlexGames73 commented 4 years ago

image

AlexGames73 commented 4 years ago

GPG Manifest

<?xml version="1.0" encoding="utf-8"?>
<!-- This file was automatically generated by the Google Play Games plugin for Unity
     Do not edit. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.example.games.mainlibproj"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="14" />

    <application>

        <!-- The space in these forces it to be interpreted as a string vs. int -->
        <meta-data android:name="com.google.android.gms.games.APP_ID"
            android:value="\u00315957200395" />

        <!-- Keep track of which plugin is being used -->
        <meta-data android:name="com.google.android.gms.games.unityVersion"
            android:value="\u0030.10.09" />

        <activity android:name="com.google.games.bridge.NativeBridgeActivity"
            android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
    </application>
</manifest>

Appodeal Manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.appodeal.appodeal.unity">

    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="27"/>
    <application android:allowBackup="true" android:networkSecurityConfig="@xml/network_security_config">

        <uses-library android:name="org.apache.http.legacy" android:required="false"/>
    </application>

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

    <!--optional-->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <!--optional-->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <!--optional-->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <!--optional-->
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <!--optional-->
    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
    <!--optional-->
    <uses-permission android:name="android.permission.VIBRATE"/>
    <!--optional-->

</manifest>

Custom gradle

// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN

// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each {
    ext {
        it.setProperty("android.useAndroidX", true)
        it.setProperty("android.enableJetifier", true)
    }
}
([rootProject] + (rootProject.subprojects as List)).each { project ->
    project.repositories {
        def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
        maven {
            url "https://maven.google.com"
        }
        maven {
            url "https://artifactory.appodeal.com/appodeal" // Assets/Appodeal/Editor/AppodealCoreDependencies.xml:7, Assets/ConsentManager/Editor/ConsentMangerDependencies.xml:7
        }
        maven {
            url (unityProjectPath + "/Assets/GeneratedLocalRepo/GooglePlayGames/Editor/m2repository") // Assets/GooglePlayGames/Editor/GooglePlayGamesPluginDependencies.xml:11
        }
        mavenLocal()
        jcenter()
        mavenCentral()
    }
}
// Android Resolver Repos End
apply plugin: 'com.android.library'
**APPLY_PLUGINS**

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation 'com.appodeal.ads.sdk.networks:a4g:2.7.1.2' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:24
    implementation 'com.appodeal.ads.sdk.networks:adcolony:2.7.1.3' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:8
    implementation 'com.appodeal.ads.sdk.networks:admob:2.7.1.2' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:9
    implementation 'com.appodeal.ads.sdk.networks:amazon_ads:2.7.1.1' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:10
    implementation 'com.appodeal.ads.sdk.networks:applovin:2.7.1.4' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:11
    implementation 'com.appodeal.ads.sdk.networks:appodeal:2.7.1.1' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:3
    implementation 'com.appodeal.ads.sdk.networks:appodealx:2.7.1.1' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:4
    implementation 'com.appodeal.ads.sdk.networks:chartboost:2.7.1.2' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:12
    implementation 'com.appodeal.ads.sdk.networks:facebook:2.7.1.3' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:13
    implementation 'com.appodeal.ads.sdk.networks:inmobi:2.7.1.2' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:14
    implementation 'com.appodeal.ads.sdk.networks:inner-active:2.7.1.1' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:15
    implementation 'com.appodeal.ads.sdk.networks:ironsource:2.7.1.4' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:16
    implementation 'com.appodeal.ads.sdk.networks:mraid:2.7.1.1' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:5
    implementation 'com.appodeal.ads.sdk.networks:my_target:2.7.1.3' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:17
    implementation 'com.appodeal.ads.sdk.networks:nast:2.7.1.1' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:6
    implementation 'com.appodeal.ads.sdk.networks:ogury:2.7.1.3' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:18
    implementation 'com.appodeal.ads.sdk.networks:smaato:2.7.1.2' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:19
    implementation 'com.appodeal.ads.sdk.networks:startapp:2.7.1.4' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:20
    implementation 'com.appodeal.ads.sdk.networks:tapjoy:2.7.1.3' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:21
    implementation 'com.appodeal.ads.sdk.networks:unity_ads:2.7.1.3' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:22
    implementation 'com.appodeal.ads.sdk.networks:vast:2.7.1.1' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:7
    implementation 'com.appodeal.ads.sdk.networks:yandex:2.7.1.3' // Assets/Appodeal/Editor/AppodealAdapterDependencies.xml:23
    implementation 'com.appodeal.ads.sdk:core:2.7.1' // Assets/Appodeal/Editor/AppodealCoreDependencies.xml:7
    implementation 'com.explorestack:consent:1.0.1' // Assets/ConsentManager/Editor/ConsentMangerDependencies.xml:7
    implementation 'com.google.games:gpgs-plugin-support:0.10.09' // Assets/GooglePlayGames/Editor/GooglePlayGamesPluginDependencies.xml:11
// Android Resolver Dependencies End
**DEPS**}

// Android Resolver Exclusions Start
android {
  packagingOptions {
      exclude ('/lib/arm64-v8a/*' + '*')
      exclude ('/lib/armeabi/*' + '*')
      exclude ('/lib/mips/*' + '*')
      exclude ('/lib/mips64/*' + '*')
      exclude ('/lib/x86/*' + '*')
      exclude ('/lib/x86_64/*' + '*')
  }
}
// Android Resolver Exclusions End
android {
    compileSdkVersion **APIVERSION**
    buildToolsVersion '**BUILDTOOLS**'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}**REPOSITORIES****SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**
ozdemir08 commented 4 years ago

Have you tried running Android Resolver with Force Resolve option?

AlexGames73 commented 4 years ago

Have you tried running Android Resolver with Force Resolve option?

Yes