我只是在我的Android项目中迁移了Google Place自动填充功能,但未显示搜索结果。 我已经在我的项目中启用了结算功能。 但显示“无法加载搜索结果” 请帮忙 预先感谢。
请在下面检查我的gradle文件代码 我已经删除了以前的地方api gradle并添加了新的地方库
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationid "com.inwizards.findcoach"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
multiDexEnabled true
vectorDrawables.useSupportlibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
dexOptions {
predexlibraries = false
jumboMode = false
javaMaxHeapSize "2048M"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}
repositories {
maven { url "https://jitpack.io" }
google()
}
dependencies {
implementation fileTree(include: ['*.jar'],dir: 'libs')
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0',{
exclude group: 'com.android.support',module: 'support-annotations'
})
implementation files('libs/nineoldandroids-2.4.0.jar')
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-database:18.0.1'
implementation 'com.firebase:firebase-client-android:2.5.2'
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.koushikdutta.ion:ion:2.2.1'
implementation 'com.squareup.picasso:picasso:2.4.0'
implementation 'org.apache.httpcomponents:httpmime:4.2.3'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.paypal.sdk:paypal-android-sdk:2.15.3'
implementation 'com.facebook.android:facebook-login:4.42.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
implementation 'com.github.sujithkanna:smileyrating:1.6.5'
implementation 'com.github.ekimual:croperino:1.1.2'
implementation 'com.nex3z:flow-layout:1.3.0'
testImplementation 'junit:junit:4.12'
implementation fileTree(dir: 'libs',include: ['*.aar','*.jar'],exclude: [])
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation ('com.google.android.libraries.places:places:2.1.0'){
exclude module: 'volley'
}
}
android {
packagingOptions {
exclude 'Meta-INF/DEPENDENCIES.txt'
exclude 'Meta-INF/LICENSE.txt'
exclude 'Meta-INF/NOTICE.txt'
exclude 'Meta-INF/NOTICE'
exclude 'Meta-INF/LICENSE'
exclude 'Meta-INF/DEPENDENCIES'
exclude 'Meta-INF/notice.txt'
exclude 'Meta-INF/license.txt'
exclude 'Meta-INF/dependencies.txt'
exclude 'Meta-INF/LGPL2.1'
}
}
apply plugin: 'com.google.gms.google-services'