Android: resource not found powered_by_google_light icon in build tools 23.0.3?

I have always used badges powered_by_googleas I use Google Places API. They look like this:

enter image description here

This site says that the icons are included in the Google Play services library: https://developers.google.com/places/android-api/attributions

The image "Powered by Google" is included in the Google Play library services, in the correct sizes for Android applications. You cannot resize or modify these images in any way:

For use on a light background: @ drawable / powered_by_google_light For use on a dark background: @ drawable / powered_by_google_dark

Now, earlier, I would just refer to the icons in my xml by doing this:

            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/powered_by_google_inner"
                android:src="@drawable/powered_by_google_light"
                android:padding="8dp"/>

, Google Play 8.4 9.2.1, drawable , :

: (14, 22) , ( 'src' '@drawable/powered_by_google_light'). : failed for task ': app: processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:   '/Users/Library/Android/sdk/build-tools/23.0.3/aapt' '    1

app.gradle():

apply plugin: 'com.android.application'

android {

    compileSdkVersion 23
    buildToolsVersion '23.0.3'


dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile('com.google.android.gms:play-services-base:9.2.1') {
        exclude module: 'support-v4'
    }
    compile('com.google.android.gms:play-services-location:9.2.1') {
        exclude module: 'support-v4'
    }
    compile('com.google.android.gms:play-services-gcm:9.2.1') {
        exclude module: 'support-v4'
    }
    compile('com.google.android.gms:play-services-maps:9.2.1') {
        exclude module: 'support-v4'
    }
    compile('com.google.android.gms:play-services-appinvite:9.2.1') {
        exclude module: 'support-v4'
    }
    compile('com.google.android.gms:play-services-analytics:9.2.1') {
        exclude module: 'support-v4'
    }
}
apply plugin: 'com.google.gms.google-services'

gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

, : https://developers.google.com/places/web-service/policies , .

+4
2

9.2. com.google.android.gms:play-services-places:9.2.1 gradle.

+9

, Google Repository, Google Repository Android SDK "Extras".

0

Source: https://habr.com/ru/post/1648154/


All Articles