Got error while testing App - Firebase Test Lab - java

I just cannot understand what error is this. I got it when I tried to test my app on a device from the Firebase Test Lab. When I test the app on my phone and on the android emulator in Android Studio, everything works fine, but here, at the first activity created, I get this error that I don't know what means. If you know the problem, or how to solve it, please help me out. Thanks
Here is my build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "edurbrito.SuperLigaUsers"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'org.apache.commons:commons-lang3:3.7'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:support-annotations:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//noinspection GradleCompatible
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.android.support:design:26.1.0'
implementation 'com.shawnlin:number-picker:2.4.6'
implementation files('libs/activation.jar')
implementation files('libs/additionnal.jar')
implementation files('libs/mail.jar')}
apply plugin: 'com.google.gms.google-services'

Can you please join the #test-lab channel at https://firebase-community.slack.com and then post a sample matrix-id of a test with this failure? A new Firebase Test Lab bug was filed a couple days ago that might be the same as this, but we can't tell without inspecting your test matrix.

Related

Error java.lang.NoSuchMethodError - External libraries

Hi i am trying to use some external libraries, the things is thats their are aparently detected in compile time
Because i can go to the reference
But when i try to run it i get the following error
What is strange to me is that the file that contains the method does not appear in my external files
When i search for it in the files it supposed to appear here
as rememberLottieComposition.kt
but instead only appear RememberLottieCompositionKT.class
BTW, when i look in my files the file that contains the missing method exist
So no idea how to solve it, i have tried a lot but no results.
Any idea of what may it be will really help!
Thank you in advance
This is my build gradle:App
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 30
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.perri"
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
//de 1.5.1
}
}
//compose_version = '1.0.0-beta01'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0' // appcompat library
//noinspection GradleCompatible
implementation 'com.android.support:design:28.0.0'
implementation 'androidx.core:core-ktx:1.5.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation "com.airbnb.android:lottie:4.0.0"
implementation "com.airbnb.android:lottie-compose:4.0.0"
implementation "androidx.compose.runtime:runtime:1.0.0-beta01"
implementation 'androidx.recyclerview:recyclerview:1.0.0'
//noinspection GradleCompatible
implementation 'com.android.support:recyclerview-v7:25.3.1'
//swipe
implementation 'it.xabaras.android:recyclerview-swipedecorator:1.2.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.compose:compose-runtime:0.1.0-dev10'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
}
And this is the other build Gradle

Why do I get a cardview error when I run my project?

i get a source code in internet and i try to run it, but i get this error.((ERROR: Failed to resolve: cardview Affected Modules: app))how i can solve this error?
the following code is my build.gradle(madule:app), i try other version of library and update android studio even i try to delete every cardview in my project, but still have error.
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "30.0.1"
defaultConfig {
applicationId "com.example.ecommerce"
minSdkVersion 23
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation "androidx.test.ext:junit:1.1.1"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.firebase:firebase-core:17.4.4'
implementation 'com.google.firebase:firebase-database:19.3.1'
implementation 'com.google.firebase:firebase-storage:19.1.1'
implementation 'com.firebaseui:firebase-ui-database:3.2.2'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.github.rey5137:material:1.2.5'
//implementation 'com.android.support:cardview-v7:29.1.1'
//implementation 'com.android.support:recyclerview-v7:29.1.1'
implementation "androidx.cardview:cardview:1.0.0"
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'io.paperdb:paperdb:2.6'
implementation 'com.android.support:design:29.1.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'com.cepheuen.elegant-number-button:lib:1.0.2'
//implementation 'com.google.android.material:material:1.3.0-alpha01'
}
First:
You have to decide which dependencies of both Support Library or AndroidX you need in your application. You've added both Support Library and AndroidX dependencies to the project which is not correct.
Anyways, here is the right build.gradle after Migrate to AndroidX from Refactor menu:
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.firebase:firebase-core:17.4.4'
implementation 'com.google.firebase:firebase-database:19.3.1'
implementation 'com.google.firebase:firebase-storage:19.1.1'
implementation 'com.firebaseui:firebase-ui-database:3.2.2'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.github.rey5137:material:1.2.5'
implementation "androidx.cardview:cardview:1.0.0"
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'io.paperdb:paperdb:2.6'
implementation 'com.google.android.material:material:1.1.0'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
implementation 'com.cepheuen.elegant-number-button:lib:1.0.2'
Second:
((ERROR: Failed to resolve: cardview Affected Modules: app)
This is because it cannot download the needed libraries from maven or any other repositories which is mostly caused by your IP limitations.

Error when clone existing Android project from github [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I need to clone my existing android project from github to another computer but while i cloning my repo android studio giving me such error. what can i do for successful cloning my project?
My Module.app file is bwllow
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.whatsapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.google.firebase:firebase-storage:16.0.4'
implementation 'com.firebaseui:firebase-ui-database:4.2.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
}
and the error is
Press double shift and type offline work.
You can go there via. Build, Execution, Deployment > Gradle.
Could you see if you have offline work enabled. If that is the case disable it and try again.

Jsoup program type already present

I am using JSoup to parse my HTML response in my Java application but when I add the implementation I get the following:
Program type already present: org.jsoup.Connection$KeyVal
Message{kind=ERROR, text=Program type already present:
org.jsoup.Connection$KeyVal, sources=[Unknown source file], tool
name=Optional.of(D8)}
I am wondering has anyone experienced this before? I will add my full build.gradle below, I am running the most current SDK.
apply plugin: 'com.android.application'
android { compileSdkVersion 28 defaultConfig {
applicationId "uareloadedapp"
minSdkVersion 26
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'
} } productFlavors { } }
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation (name: 'wikitudesdk', ext:'aar') implementation 'com.google.ar:core:1.1.0' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'org.altbeacon:android-beacon-library:2.15.2' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.squareup.picasso:picasso:2.5.2' implementation "com.android.support:support-core-utils:28.0.0" implementation 'com.android.support:support-v4:28.0.0' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+' implementation 'org.jsoup:jsoup:1.11.3'
} repositories { flatDir{
dirs 'libs' } }
Check if there is anything that you have added as a dependency and is also in the libs folder. That was my problem. deleting the file from the lib folder fixed it

Android Studio Failed to resolve: com.android.support:appcompat-v7.28.0.0

I am getting this error, Failed to resolve: com.android.support:appcompat-v7.28.0.0 I have been looking on here and tried changing it to other variations of that line but so far no luck, why do I keep getting this error?
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 15
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'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7.28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-auth:11.6.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-database:16.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
The issue is with the appcompat-v7 dependency that you have added to the build.gradle.
Change implementation 'com.android.support:appcompat-v7.28.0.0' to implementation 'com.android.support:appcompat-v7:28.0.0'
Notice the : between appcompat-v7 and 28.0.0 that separates the artifact name and the version.
If we don't consider the typo in :
implementation 'com.android.support:appcompat-v7.28.0.0'
Change it to:
implementation 'com.android.support:appcompat-v7:28.0.0'
Then, you probably should use the latest version for the Firebase dependencies to avoid those Please fix the version errors:
implementation 'com.google.firebase:firebase-auth:16.0.4'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.3'
Then rebuild the project. Also, remember to use latest gradle to avoid couldn't found such dependency or etc.
Inside build.gradle of the project (inside your project root directory):
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
// replace it with the 3.2.0 version
...
classpath 'com.google.gms:google-services:4.1.0' // update this too
}

Categories