Unsupported method: BaseConfig.getApplicationIdSuffix()

后端 未结 9 2149
挽巷
挽巷 2020-12-04 04:58

So I\'m reading Android 6 for Programmers: An App-Driven Approach and the first two app examples I had no issues with the examples, this time the FlagQuiz example w

9条回答
  •  不知归路
    2020-12-04 05:13

    I did the following to make this run on AS 3.5

    1. app/ build.gradle

      apply plugin: 'com.android.application'

      android { compileSdkVersion 21 buildToolsVersion "25.0.0"

      defaultConfig {
          applicationId "com.example.android.mobileperf.render"
          minSdkVersion 14
          targetSdkVersion 21
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      

      }

    dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:21.0.0' implementation 'com.squareup.picasso:picasso:2.71828' }

    1. build.gradle

      buildscript { repositories { jcenter() mavenCentral() maven { url 'https://maven.google.com/' name 'Google' } google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' } } allprojects { repositories { jcenter() google() } }

    2. gradle-wrapper.properties

      distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip

提交回复
热议问题