Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes?

You can add below 2 lines into your gradle.properties file: android.useAndroidX=true android.enableJetifier=true Note to check, to not repeat any line that already exists (and ensure existing are true). Details: If you want to use androidx-namespaced libraries in a new project, you need to set the compile SDK to Android 9.0 (API level 28) or higher … Read more

What are the differences between Bazel and Gradle?

Disclaimer: I work on Bazel and I’m not intimately familiar with Gradle. However, one of my coworkers wrote up a comparison of the two systems, which I will paraphrase here: Bazel and Gradle emphasize different aspects of the build experience. To some extent, their priorities are incompatible – Gradle’s desire for flexibility and non-obtrusiveness limits … Read more

Flutter App stuck at “Running Gradle task ‘assembleDebug’… “

Here is solution in my case. Open your flutter Project directory. Change directory to android directory in your flutter project directory cd android clean gradle ./gradlew clean Build gradle ./gradlew build or you can combine both commands with just ./gradlew clean build Now run your flutter project. If you use vscode, press F5. First time … Read more

What’s the difference between buildscript and allprojects in build.gradle?

The “buildscript” configuration section is for gradle itself (i.e. changes to how gradle is able to perform the build). So this section will usually include the Android Gradle plugin. The “allprojects” section is for the modules being built by Gradle. Oftentimes the repository section is the same for both, since both will get their dependencies … Read more