I just migrate my Google Place autocomplete in my Android Project, but it is not showing search result.
I already enable billing in my project.
but it is showing Can't load search result"
Please help
Thanks in advance.
Please check my gradle file code below
I have already removed previous place api gradle and added new place library
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'
Actually i also faced the same problem butwhen i used another key it work fine for me
Related
I am trying to run my app on android studio but am getting this error
Illegal class file: Class module-info is missing a super type.
Message{kind=ERROR, text=Illegal class file: Class module-info is missing a super type., sources=[C:\Users\Toshiba.DESKTOP-GDLU8MO.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.6\9180733b7df8542621dc12e21e87557e8c99b8cb\gson-2.8.6.jar], tool name=Optional.of(D8)}
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
defaultConfig {
applicationId "com.example.system2.tranxav"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude("META-INF/*.kotlin_module")
}
sourceSets {
main {
res.srcDirs = [
'src/main/res/layouts/drawer',
'src/main/res',
'src/main/res/layouts',
]
}
}
}
dependencies {
implementation 'com.stripe:stripe-android:6.1.1'
implementation 'com.stripe:stripe-java:1.47.0'
implementation 'com.stripe:stripe-android:6.1.1'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'com.android.volley:volley:1.1.0'
implementation 'co.paystack.android:paystack:3.0.10'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.basgeekball:awesome-validation:1.3'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.parse:parse-android:1.16.5'
implementation 'com.parse.bolts:bolts-tasks:1.4.0'
implementation 'com.parse.bolts:bolts-applinks:1.4.0'
implementation 'junit:junit:4.12'
implementation 'com.google.android.gms:play-services-plus:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.github.NaikSoftware:StompProtocolAndroid:1.1.5'
implementation 'org.java-websocket:Java-WebSocket:1.3.0'
implementation 'com.github.Flutterwave.rave-android:rave_android:2.1.6'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
}
my gradle version is 4.4 How do I get rid of this error?
1.Used Android Gradle plugin v3.6.0+ and Gradle v5.6.4+.
Android studio project not compiling after updating firebase-perf plugin (Class module-info is missing)
2.Or going back to gson 2.8.5
https://github.com/google/gson/issues/1625
I'm getting this error when building a project, it seems that I have 2 libraries in my Gradle that are using the XML parser I tried to exclude it but it's not working.
Error: Program type already present: org.xmlpull.v1.XmlPullParser
Can anyone help me please in the right syntax for excluding the library?
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}
compileSdkVersion 28
defaultConfig {
multiDexEnabled true
applicationId ''
minSdkVersion 19
targetSdkVersion 28
versionCode 4
versionName '4.0.0'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
def lastestMaterialDrawerRelease = '6.0.9'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/magtek-scra.jar')
implementation files('libs/univocity-parsers-2.6.3.jar')
implementation 'com.simplify:partner-sdk-android:1.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation "com.android.support:appcompat-v7:$rootProject.supportVersion"
implementation "com.android.support:design:$rootProject.supportVersion"
implementation "com.android.support:recyclerview-v7:$rootProject.supportVersion"
implementation "com.android.support:cardview-v7:$rootProject.supportVersion"
implementation "com.android.support.constraint:constraint-
layout:$rootProject.constraintLayoutVersion"
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.android.gms:play-services-location:15.0.0'
implementation 'net.gotev:uploadservice:3.4.2'
implementation files('libs/mtscra.jar')
implementation('com.journeyapps:zxing-android-embedded:3.6.0') { transitive = false }
implementation 'com.google.zxing:core:3.3.0'
implementation 'uk.co.samuelwall:material-tap-target-prompt:2.15.0'
implementation("com.mikepenz:materialdrawer:6.0.9#aar") {
transitive = true
}
implementation 'jp.wasabeef:blurry:3.0.0'
implementation 'id.zelory:compressor:2.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.google.firebase:firebase-core:16.0.5'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
implementation 'com.google.firebase:firebase-config:16.5.0'
implementation 'com.github.f0ris.sweetalert:library:1.5.1'
implementation 'com.github.AppIntro:AppIntro:4.2.3'
implementation 'com.github.deano2390:MaterialShowcaseView:1.3.4'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'org.jsoup:jsoup:1.12.1'
}
apply plugin: 'com.google.gms.google-services'
I have generated a signed apk and given to client.Next time when i build apk using same signed apk .While installing it is showing as App not installed.Someone please tell me why is it so
Please find my gradle code.The version code was 1 and version name was 1.1 for previous build
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "net.abc.test"
minSdkVersion 21
targetSdkVersion 28
versionCode 2
versionName "1.1"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
configurations {
all {
exclude group: 'org.json', module: 'json'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/rxjava.properties'
exclude 'META-INF/proguard/androidx-annotations.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.2.0-alpha02'
implementation 'com.android.support:design:28.0.0'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.google.android:flexbox:0.3.0'
implementation 'net.gotev:uploadservice:3.0.3'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'joda-time:joda-time:2.9.9'
implementation 'com.github.mabbas007:TagsEditText:1.0.5'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.kbeanie:multipicker:1.1.31#aar'
implementation('com.amazonaws:aws-android-sdk-mobile-client:2.6.27') { transitive = true }
implementation 'com.amazonaws:aws-android-sdk-s3:2.7.4'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.6.27'
implementation 'it.michelelacorte.elasticprogressbar:library:1.0.5'
implementation 'com.github.nkzawa:socket.io-client:0.3.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'cn.jzvd:jiaozivideoplayer:6.2.12'
implementation 'me.zhanghai.android.materialprogressbar:library:1.1.7'
implementation 'com.facebook.shimmer:shimmer:0.1.0#aar'
implementation 'com.applandeo:material-calendar-view:1.0.1'
implementation 'com.getbase:floatingactionbutton:1.10.1'
implementation 'com.evrencoskun.library:tableview:0.8.8'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
implementation 'com.github.yalantis:ucrop:2.2.2-native'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.chinalwb:are:0.1.7'
implementation 'com.kyanogen.signatureview:signature-view:1.0'
implementation 'com.google.guava:guava:28.0-jre'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'org.jetbrains:annotations-java5:15.0'
}
apply plugin: 'com.google.gms.google-services'
There are few reasons why it may be occured:
Previous version code is less than the current. Try to increase it or/and check also version name in app info screen on device
The signatures don't match each other. Be careful with their data
Turn off google play protect. May be the problem is somewhere in google services
I am trying to run my application to process payments but I have run into this error. There are no errors within my code but I am unsure as to how to fix the issue. My code is below:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.firebase.alokraj.firebaselogin"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
// prevent error message "More than one file was found with OS independent path 'META-INF/DEPENDENCIES'"
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support:design:28.0.0-alpha1'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
//Firebase
implementation 'com.google.firebase:firebase-core:10.0.1'
implementation 'com.google.firebase:firebase-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:10.0.1'
// HTTP library (for Mailgun)
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.paypal.sdk:paypal-android-sdk:2.15.3'
}
// Firebase
apply plugin: 'com.google.gms.google-services'
Can anyone help?
please tell me what is the problem I saw same question in stack overflow but didn't solved my problem ...the error appears when I implement implementation project(':videocompressor') to my gradle please guys I don't know much about this please help me
this is my app.gradle
android {
buildToolsVersion '27.0.3'
compileSdkVersion 27
defaultConfig {
applicationId "com.example.alpha.lapid"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
renderscriptTargetApi 27
renderscriptSupportModeEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
lintOptions {
disable 'RestrictedApi'
}
dataBinding {
enabled = true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.google.firebase:firebase-auth:15.1.0'
implementation 'com.google.firebase:firebase-storage:15.0.2'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.android.support:design:27.1.1'
implementation 'com.github.ittianyu:BottomNavigationViewEx:1.2.4'
implementation 'com.airbnb.android:lottie:2.5.4'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
implementation 'br.com.simplepass:loading-button-android:1.7.2'
implementation 'com.google.firebase:firebase-database:15.0.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.yanzhenjie:mediascanner:1.0.3'
implementation 'com.github.bumptech.glide:glide:4.7.1'
implementation 'com.github.jd-alexander:LikeButton:0.2.3'
implementation 'com.google.firebase:firebase-perf:15.2.0'
implementation 'com.allattentionhere:autoplayvideos:0.2.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.2'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.firebaseui:firebase-ui-database:3.3.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.android.support:support-compat:27.1.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'me.shaohui:bottomdialog:1.1.9'
implementation 'com.googlecode.mp4parser:isoparser:1.1.21'
implementation 'com.allattentionhere:autoplayvideos:0.2.0'
implementation 'im.ene.toro3:toro:3.4.2'
implementation 'im.ene.toro3:toro-ext-exoplayer:3.4.2'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.google.firebase:firebase-invites:15.0.0'
implementation project(':videocompressor')
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.firebase-perf'
apply plugin: 'io.fabric'
this is my library gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation files('libs/isoparser-1.0.6.jar')
implementation files('libs/aspectjrt-1.7.3.jar')
}