搜索在更新到com.google.android.gms后停止工作:play-services:11.0.4

时间:2018-02-19 00:25:35

标签: javascript android android-studio

我想添加firebase,这就是我将源代码从 com.google.android.gms:play-services:7.3.0 更新为 11.0.4 <的原因/ p>

但在我解决了所有问题之后,当我点击按钮

时,我看到搜索栏不起作用

我的应用程序Gradle:

dependencies
        {
            compile 'com.google.firebase:firebase-core:11.0.4'
            compile 'com.facebook.android:facebook-android-sdk:4.15.0'
            compile 'com.android.support:support-v4:21.0.3'
            compile 'com.android.support:appcompat-v7:23.0.1'
            compile 'com.android.support:cardview-v7:21.0.3'
            compile 'com.android.support:recyclerview-v7:21.0.3'
            compile 'com.google.android.gms:play-services:11.0.4'
            compile 'com.afollestad:material-dialogs:0.6.3.4@aar'
            compile 'com.bignerdranch.android:recyclerview-multiselect:0.1'
            compile 'com.j256.ormlite:ormlite-android:4.48'
            compile 'com.melnykov:floatingactionbutton:1.3.0'
            compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
            compile 'se.emilsjolander:StickyScrollViewItems:1.1.0'
            compile fileTree(include: ['*.jar'], dir: 'libs')

        }


android
        {
            compileSdkVersion 25
            buildToolsVersion "25.0.2"
            defaultConfig
                    {
                        minSdkVersion 21
                        targetSdkVersion 22
                        versionName "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"
                        versionCode 2
                    }

我的搜索XML文件:

<?xml version="1.0" encoding="utf-8"?>
<searchable
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="@dimen/global_spacing_l"
    android:paddingLeft="@dimen/global_keyline_s"
    android:paddingRight="@dimen/global_keyline_s"
    android:orientation="vertical"
    android:gravity="center_vertical">

    <TextView
        android:id="@+id/search_suggestion_item_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:maxLines="1"
        android:textAppearance="@style/TextAppearance.Cookbook.Display1" />

</searchable >

提前谢谢

1 个答案:

答案 0 :(得分:0)

你有一个插件&#34;插件:&#39; com.google.gms.google-services&#39;&#34; in gradle?

//end gradle
}
apply plugin: 'com.google.gms.google-services'