Android Failed to find this app in the PackageManager io.crash.air - android

I'm using Android studio and the Fabric plugin.
I've already been able to report a crash to Fabric.
My app's Gradle build script:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.xxx.yyy"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.squareup.picasso:picasso:2.5.2'
androidTestCompile('com.android.support.test:runner:0.5') {
}
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2') {
}
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.0#aar') {
transitive = true;
}
}

This issue solved in 2.6.1 version. Upgrade your crashlytics version from 2.6.0 to 2.6.1
compile('com.crashlytics.sdk.android:crashlytics:2.6.1#aar') {
transitive = true;
}

Mike from Fabric here.
Sorry for this error! Version 2.6.1 of Crashlytics corrects this. Release notes here: https://docs.fabric.io/android/changelog.html#id6

Clean, rebuild did not work for me, I went back to 2.5.7, so for the time being my app build.gradle now is back to (and no more exception) :
compile('com.crashlytics.sdk.android:crashlytics:2.5.7#aar') {
transitive = true;
}

Related

support media compact 25.4.0 file not found error

One of my old project I am getting following error.
as 25.4.0 jar file not present how to solve this without upgradition of project compile, build tool version as other developers also working on this project.
Could not find support-media-compat.jar (com.android.support:support-media-compat:25.4.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-media-compat/25.4.0/support-media-compat-25.4.0.jar
Only for my Android studio I am getting this issue for other team mates there project is working fine
here is my gradle file
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.27.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
maven {
url "http://dl.bintray.com/lukaville/maven"
}
}
android {
compileSdkVersion 25
buildToolsVersion "25"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.m.p"
minSdkVersion 16
targetSdkVersion 26
versionCode 5
versionName "1.4"
multiDexEnabled true
}
buildTypes {
/*release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}*/
}
dexOptions {
javaMaxHeapSize "2g"
}
configurations {
all*.exclude module: 'gson'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile('com.crashlytics.sdk.android:crashlytics:2.6.5#aar') {
transitive = true
}
compile project(':commons')
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.android.support:support-media-compat:25.3.1'
compile 'com.android.support:design:25.4.0'
compile 'com.android.support:cardview-v7:25.0.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.roomorama:caldroid:3.0.1'
compile 'com.github.lsjwzh.RecyclerViewPager:lib:v1.1.2'
compile 'com.google.android.gms:play-services-maps:9.8.0'
compile 'com.google.android.gms:play-services-location:9.8.0'
compile 'com.google.maps.android:android-maps-utils:0.4.4'
compile 'com.github.jrvansuita:CheckNewAppVersionAvailable:v1.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'uk.co.chrisjenx:calligraphy:2.3.0'
// compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
// compile 'com.github.PhilJay:MPAndroidChart:v3.1.0'
compile 'com.github.barteksc:android-pdf-viewer:2.0.3'
}
and here is my common library which include inside project
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25"
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.google.code.gson:gson:2.2.4'
}
You messed up your build.gradle(project), I recommend you revert it back to its or default form.
You usually make changes on build.gradle(module) and let it sync.
I found some lines of code that shouldn't belong on the build.gradle(project).
build.gradle(Project) should look like this.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle(Module) should look like this.
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.example.barcodescanner"
minSdkVersion 17
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 'com.google.android.gms:play-services-vision:18.0.0'
implementation 'com.android.support:design:29.0.0'
implementation 'com.google.firebase:firebase-auth:19.0.0'
implementation 'com.google.firebase:firebase-core:17.2.0'
implementation 'com.google.firebase:firebase-database:19.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
compile is replace by implementation
inside the build.gradle of project, label add
allprojects {
repositories {
google()
jcenter()
}
}
And update your dependency to the latest version as google play store is not allowing to upload the app which is targeting the SDK version less then oreo (8.0+).
Replace compile to implementation.

Could not find com.android.tools.build:gradle-core:3.0.0-alpha5

I'm getting this error
Error:Could not find com.android.tools.build:gradle-core:3.0.0-alpha5.
Searched in the following locations:
file:/C:/Program Files/Android/android-studio-3/gradle/m2repository/com/android/tools/build/gradle-core/3.0.0-alpha5/gradle-core-3.0.0-alpha5.pom
file:/C:/Program Files/Android/android-studio-3/gradle/m2repository/com/android/tools/build/gradle-core/3.0.0-alpha5/gradle-core-3.0.0-alpha5.jar
https://jcenter.bintray.com/com/android/tools/build/gradle-core/3.0.0-alpha5/gradle-core-3.0.0-alpha5.pom
https://jcenter.bintray.com/com/android/tools/build/gradle-core/3.0.0-alpha5/gradle-core-3.0.0-alpha5.jar
Required by:
project : > com.android.tools.build:gradle:3.0.0-alpha5
My gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '25.0.3'
defaultConfig {
applicationId "com.the360ls.a360"
minSdkVersion 19
targetSdkVersion 26
versionCode 10
versionName "0.8.1e"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
signingConfig signingConfigs.config
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
debug {
signingConfig signingConfigs.config
}
}
buildscript {
repositories {
jcenter()
maven { url 'https://dl.google.com/dl/android/maven2' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha6'
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://raw.github.com/Tpaga/tpaga-android-sdk/releases"
}
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.0.0-beta2'
compile 'com.android.support:design:26.0.0-beta2'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.android.support:cardview-v7:26.0.0-beta2'
compile 'com.android.support:recyclerview-v7:26.0.0-beta2'
compile 'com.android.support:support-vector-drawable:26.0.0-beta2'
compile 'com.android.support:support-v4:26.0.0-beta2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.firebase:firebase-core:11.0.2'
compile 'com.google.firebase:firebase-database:11.0.2'
compile 'com.google.android.gms:play-services-maps:11.0.2'
compile 'com.google.android.gms:play-services-location:11.0.2'
testCompile 'junit:junit:4.12'
compile 'co.tpaga:android:1.0.0'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.weiwangcn.betterspinner:library-material:1.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
}
apply plugin: 'com.google.gms.google-services'
I dont know how to fix it, Im tryng everything
change the dependencies
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
change the gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
Change
dependencies in "build.gradle" with existing latest version of the android studio
change the "distributionUrl" in gradle-wrapper.properties to latest version
My version is "Android Studio 3.0 Canary 7" and my changes are as follows
1.dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha7'
}
2.
distributionUrl=https://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip

Android Dependency error

I have following code in build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.myapp.myapplication"
minSdkVersion 14
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 {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.thefinestartist:finestwebview:1.2.7'
testCompile 'junit:junit:4.12'
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
}
But i get error for the following line
compile 'com.android.support:appcompat-v7:26.0.0'
Can any one help me how to fix this issue ?
problem is with
compile 'com.thefinestartist:finestwebview:1.2.7' check below screen shot
Solution :
https://stackoverflow.com/a/25736483/793943
This means your build version is 26.0.1 but ur support gradle version is 26.0.0. Change the support appcompat version from 26.0.0 to 26.0.1 and build.
Try adding below code to your project level build.gradle file, it should work
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
}

firebase on android: authentication and database, gradle sync with error

I have written an Android App that uses the Firebase database feature. Everything is working fine and now I would like to integrate the Authentication feature. So I modified my build.gradle for the app to include the two dependencies for the authentication:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.gmeunier.gestiondepoints"
minSdkVersion 23
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.google.android.gms:play-services-plus:10.2.6'
compile 'com.google.firebase:firebase-database:10.2.6'
compile 'com.firebaseui:firebase-ui-auth:1.2.0'
compile 'com.google.firebase:firebase-auth:10.2.6'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
Despite all my efforts and research on this topic, I still have the following error when I try to sync this gradle :
Failed to resolve: com.twitter.sdk.android:twitter:2.3.0
I can't find which lib/component versions I must use and I would appreciate help and support.
Your project's gradle file should look like this.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
// Required for 'com.firebaseui:firebase-ui:1.1.1'
maven {
url 'https://maven.fabric.io/public'
}
}
}
Original answer: https://stackoverflow.com/a/41664069/7339411
Add the following line inside "repositories", inside "allprojects" and "buildscript" to your Project Level build.gradle file:
maven {
url 'https://maven.fabric.io/public'
}

Twitter Fabric integration plugin on android studio gradle (build failure)

I'm trying to implement twitter login on my app and followed the fabric tips but i get an error while building the app:
Error:Execution failed for task ':app:fabricGenerateResourcesDebug'.
Crashlytics Developer Tools error.
here is my gradle file:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
defaultConfig {
applicationId "com.ntg.hatmaak"
minSdkVersion 17
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// compile project(':facebook')
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.facebook.android:facebook-android-sdk:4.6.0'
compile 'com.github.marcohc:robotocalendarview:1.1.0'
compile 'com.prolificinteractive:material-calendarview:0.8.1'
//compile 'com.wrapp.floatlabelededittext:library:0.0.6'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.daimajia.swipelayout:library:1.2.0#aar'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile('com.twitter.sdk.android:twitter:1.8.0#aar') {
transitive = true;
}
}
Have you created a "fabric.properties" file which is required to contain API Key and Build Secret, in your app directory ?
Hope it helps.
Your manifest must contain an io.fabric.ApiKey
<meta-data
android:name="io.fabric.ApiKey"
android:value="--------------" />

Categories

Resources