播放服务和一个信号Android

时间:2018-08-31 11:40:17

标签: android onesignal

我已经被困了好几天了,我使用的是Onesignal andrroid gradle插件,并且对gradle文件的顶层和模块级都依赖。 我设法解决了许多依赖冲突,但是现在我收到了此错误。

  

找不到play-services-stats.aar(com.google.android.gms:play-services-stats:15.0.1)。     在以下位置搜索:         https://jcenter.bintray.com/com/google/android/gms/play-services-stats/15.0.1/play-services-stats-15.0.1.aar   找不到play-services-ads-identifier.aar(com.google.android.gms:play-services-ads-identifier:15.0.1)。     在以下位置搜索:         https://jcenter.bintray.com/com/google/android/gms/play-services-ads-identifier/15.0.1/play-services-ads-identifier-15.0.1.aar

我还下载了这两个arr文件,但似乎onesignal sdk会继续在这些链接上寻找存在字体的这些文件。

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'newrelic'
apply plugin: 'io.fabric'
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

repositories {
    mavenCentral()
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"
    }
    google()
}
android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
    flavorDimensions ""


signingConfigs {
    shopbuddies_nl {
        keyAlias ''
        keyPassword ''
        storePassword ''
        storeFile file('certs/.jks')
    }
    shopbuddies_be {
        keyAlias ''
        keyPassword ''
        storePassword ''
        storeFile file('certs/')
    }
}

compileSdkVersion 27
buildToolsVersion '27.0.3'
dexOptions {
    jumboMode = true
    javaMaxHeapSize "4g"
}
defaultConfig {
    applicationId 'com.codenterprise'
    minSdkVersion 16
    targetSdkVersion 28
    versionCode 1
    versionName "1.0.0"
    renderscriptTargetApi 18
    renderscriptSupportModeEnabled true
    multiDexEnabled true
    vectorDrawables.useSupportLibrary = true
}
buildTypes {
    release {
        minifyEnabled false
        shrinkResources false
    }
}
flavorDimensions 'sbs'
productFlavors {
    abcxyz {
        applicationId ''
        versionCode 1
        versionName '1.0.0'
        dimension 'sbs'
        manifestPlaceholders = [manifestApplicationId          : "${applicationId}",
                                onesignal_app_id               : "",
                                onesignal_google_project_number: ""]
        android.sourceSets {
            main.res.srcDirs = ['src/main/res', 'src/main/res_nl']
        }
        signingConfig signingConfigs.abcxyz
    }
    def{
        applicationId ''
        versionCode 3
        versionName '1.0.2'
        dimension 'sbs'
        manifestPlaceholders = [manifestApplicationId          : "${applicationId}",
                                onesignal_app_id               : "",
                                onesignal_google_project_number: ""]
        android.sourceSets {
            main.res.srcDirs = ['src/main/res', 'src/main/res_nl']
        }
        signingConfig signingConfigs.shopbuddies_nl
    }
}
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation files('libs/MobileAppTracker-3.4.1.jar')
    implementation files('libs/twitter4j-core-4.0.2.jar')
    implementation files('libs/signpost-core-1.2.1.1.jar')
    implementation files('libs/signpost-commonshttp4-1.2.1.1.jar')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation files('libs/YouTubeAndroidPlayerApi.jar')
    implementation 'com.beardedhen:androidbootstrap:2.3.2'
    implementation 'com.facebook.android:facebook-android-sdk:4.+'
    implementation 'com.google.android.gms:play-services-plus:15.0.1'
    implementation 'com.google.android.gms:play-services-auth:15.0.1'
    implementation 'com.google.android.gms:play-services-analytics:16.0.3'
    implementation 'com.google.android.gms:play-services-location:15.0.1'
    implementation 'com.google.firebase:firebase-core:16.0.3'
    implementation 'junit:junit:4.12'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.karumi:dexter:2.2.2'
    implementation 'com.miguelcatalan:materialsearchview:1.4.0'
    implementation 'com.github.clans:fab:1.6.4'
    implementation 'com.newrelic.agent.android:android-agent:5.8.3'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.tune:tune-marketing-console-sdk:4.8.1'
    implementation 'com.dmitrymalkovich.android:progress-fab:1.6'
    implementation 'com.android.support:multidex:1.0.2'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.victor:lib:1.0.4'
    implementation 'com.koushikdutta.ion:ion:2.+'
    /*compile 'com.onesignal:OneSignal:3.+@aar'*/
    implementation 'com.onesignal:OneSignal:[3.9.1, 3.99.99]'
    implementation 'org.zakariya.stickyheaders:stickyheaders:0.7.6'
    implementation 'com.uncopt:android.justified:1.0'
    implementation 'com.beardedhen:androidbootstrap:2.3.2'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.9.1'
    implementation project(':play-services-ads-identifier-15.0.1')
    implementation project(':play-services-stats-15.0.1')
}
buildscript {
    repositories {
        mavenCentral()
        jcenter()
        maven {
            url 'http://dl.bintray.com/amulyakhare/maven'
        }
    }

    dependencies {
        classpath "com.newrelic.agent.android:agent-gradle-plugin:5.8.3"

    }
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android-extensions'

最高水平

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

buildscript {
    ext.kotlin_version = '1.2.50'
    repositories {
        maven {
            url 'https://maven.google.com/'
        }
        jcenter()
        maven {
            url 'https://maven.fabric.io/public'
        }
        maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:4.0.1'
        classpath 'io.fabric.tools:gradle:1.25.4'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // OneSignal-Gradle-Plugin
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.11.0, 0.99.99]'
    }
}

allprojects {
    repositories {
        jcenter()

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

0 个答案:

没有答案