1. go6o78's Avatar
    Hello
    i am not a coder but i want to insert
    interstitial ad code in my project - live wallpaper made with livepaper creator, how i said i'm not a coder
    i put this in my build.gradle file, but sync failed

    buildscript {
    repositories {
    jcenter()
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:2.1.2'
    }
    }

    apply plugin: 'com.android.application'
    android {
    compileSdkVersion 25
    buildToolsVersion "26.0.1"
    defaultConfig {
    minSdkVersion 14
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    }

    dependencies {
    compile 'com.google.android.gmslay-services-ads:11.2.0'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.android.gmslay-services-ads:9.6.1'
    testCompile 'junit:junit:4.12'

    }

    allprojects {
    repositories {
    jcenter()
    maven {
    url "https://maven.google.com"
    }

    }
    [code]buildscript {
    repositories {
    jcenter()
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:2.1.2'
    }
    }

    apply plugin: 'com.android.application'
    android {
    compileSdkVersion 25
    buildToolsVersion "26.0.1"
    defaultConfig {
    minSdkVersion 14
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    }

    dependencies {
    compile 'com.google.android.gmslay-services-ads:11.2.0'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.android.gmslay-services-ads:9.6.1'
    testCompile 'junit:junit:4.12'

    }

    allprojects {
    repositories {
    jcenter()
    maven {
    url "https://maven.google.com"
    }

    }

    Errorrg.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection
    Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
    <a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
    <a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

    and i cant move on can somebody help me with this integrate
    i try to integrate interstitial ad from ADMOB
    here is link to my source files
    https://drive.google.com/open?id=0B2u6yCWB2rETeWFrM0pESUF2NUE
    09-04-2017 12:31 PM

Similar Threads

  1. how can i unlock my phone fastboot and rescue mode
    By joseph jovith in forum Ask a Question
    Replies: 2
    Last Post: 09-04-2017, 12:58 PM
  2. Cannot access my motorola g4 cell phone?
    By jessb206 in forum Ask a Question
    Replies: 1
    Last Post: 09-04-2017, 12:52 PM
  3. Galaxy (on7) Apps Store icon not showing up on home screen
    By bea_in_mar in forum General Help and How To
    Replies: 1
    Last Post: 09-04-2017, 11:51 AM
  4. None of the apps working on mobile data except whatsapp
    By Atif Farhan in forum Ask a Question
    Replies: 1
    Last Post: 09-04-2017, 11:47 AM
  5. Why is Android OS eating all my data?
    By amypollock93 in forum Android 7.0 Nougat
    Replies: 1
    Last Post: 09-04-2017, 11:40 AM
LINK TO POST COPIED TO CLIPBOARD