Android Studio Mini-tutorial

Discussion in 'Technical Discussion' started by Andy, Dec 12, 2017.

  1. Bilz636

    Bilz636 Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    277
    Likes Received:
    159
    i am these errors in android studio. Anyone can help me out? Also admob ads are not showing. i checked everything from ad unit to Buildbox setting (also no extra spaces). I also tried Testing Ads unit by google but i am still not getting any single ad.

    ERROR: The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    Affected Modules:
     
  2. Josh (Tekanology)

    Josh (Tekanology) Head Moderator Staff Member

    Joined:
    Nov 27, 2017
    Messages:
    377
    Likes Received:
    116
  3. APP-STOLZ

    APP-STOLZ Boxer

    Joined:
    May 9, 2019
    Messages:
    6
    Likes Received:
    2
    Hello friend Please edit the following file in Android Studio: Build.Gradle (MODULE: APP)
    Replace all * COMPILE * In * implementation *
    If you see * TestCompile * Replace it with * TestImplementation * Pay attention to the fact that i am written in bulk, with others * compile * Is it important that you * implementation * i write small, i hope you can understand it and it works for you

    Example:
    "NOT CORRECT"
    dependencies {
    compile 'com.google.android.gms: play-services: +'
    compile 'com.android.support:multidex:1.0.3'
    compile fileTree (dir: 'libs', include: ['* .jar'])
    // More deps here //
    }

    "RIGHT"

    dependencies {
    implementation 'com.google.android.gms: play-services: +'
    implementation 'com.android.support:multidex:1.0.3'
    implementation fileTree (dir: 'libs', include: ['* .jar'])
    }
     
    Bilz636 likes this.

Share This Page