question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not work with compileSdkVersion 29

See original GitHub issue

Not work with compileSdkVersion 29

  • Plugin version: 0.6.3
  • Platform: Android
  • OS version: 10
  • Device manufacturer and model: Oneplus 6
  • React Native version: 0.59.10

Hello, I have updated compileSdkVersion, to match the new conditions of android, from 28 to 29. Now the package doesn’t work, after start, it starts the process related to the start event but after the app freeze and after crasha, you can give me a hand. Thanks

build.gradle `// Top-level build file where you can add configuration options common to all sub-projects/modules.

ext { compileSdkVersion = 29 targetSdkVersion = 29 buildToolsVersion = “29.0.3” supportLibVersion = “29.0.3” // googlePlayServicesVersion = “11.8.0” // googlePlayServicesVersion = “9.8.0” googlePlayServicesVersion = “+” gradle3EXPERIMENTAL = “yes” googlePlayServicesAuthVersion = “16.0.1”

// firebaseVersion = “17.3.4” // default: “+”

}

buildscript { repositories {

    jcenter()
    
    maven {
      url "https://maven.google.com"
    }
    
    maven {
      // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
      url "$rootDir/../node_modules/react-native/android"
    }

    maven { url 'https://maven.fabric.io/public' } // fabric & crashlytics

    google()

}

dependencies { classpath ‘com.android.tools.build:gradle:3.4.1’

  classpath 'com.google.gms:google-services:4.3.2'  // Google Services plugin
  classpath 'io.fabric.tools:gradle:1.+' // fabric & crashlytics
  
  classpath 'com.bugsnag:bugsnag-android-gradle-plugin:3.+'

  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 { mavenLocal() google() // <-- Add this line above jcenter jcenter()

    mavenLocal()
    maven { url 'https://jitpack.io' }
    maven {
      url "https://maven.google.com"
    }
    maven {
      // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
      url "$rootDir/../node_modules/react-native/android"
    }
    maven {
      url "$rootDir/../node_modules/react-native-background-fetch/android/libs"
    }
    google()
    jcenter()
    
     configurations.all {
        resolutionStrategy {
            force "com.android.support:appcompat-v7:$supportLibVersion"
        }
    }
}
//add the folllowing lines to force libs to use recent buildtools
subprojects {
    afterEvaluate {
        project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion = 29
                    buildToolsVersion = "29.0.3"
                    
                }
            }
    }
}

}

`

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
MilosRcommented, Dec 25, 2020

Tested it with compileSdkVersion 29, first I got exception error in logcat and app freezes on BackgroundGeolocation.start(). Try to add:

implementation 'com.google.android.gms:play-services-location:15.0.1'

into dependencies in app/build.gradle

That resolved problem in my case.

0reactions
aljaz00commented, Dec 2, 2020

Same for me, I get this error: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix the errors changing compileSdkVersion from 28 to 29
The best solution is to get rid of the ?: "ABCD" , as that is unnecessary and is a waste of space. But,...
Read more >
CompileSdkVersion and targetSdkVersion — what is the ...
In this article, we'll take a closer look at two values that are set in the build.gradle file: compileSdkVersion and targetSdkVersion.
Read more >
How to Fix: The minCompileSdk (31) is greater ... - YouTube
How to Fix: The minCompileSdk (31) is greater than this module's compileSdkVersion (android-30). 29K views 1 year ago. BoostMyTool.
Read more >
Migrating your apps to Android 10
In many cases you should not need to change your app's targetSdkVersion or use new APIs, although you can optionally change your compileSdkVersion...
Read more >
Flutter: compileSdkVersion is not specified. even though i ...
I even experimented with using the Android SDK version 29 and updating the compile and target SDK version to 29 in the gradle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found