Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat

Run gradle -q dependencies (or gradle -q :projectName:dependencies) to generate a dependency report. You should see where r7 is coming from, such as: compile – Classpath for compiling the main sources. +— com.commonsware.cwac:camera-v9:0.5.4 | +— com.actionbarsherlock:actionbarsherlock:4.4.0 | | \— com.google.android:support-v4:r7 | +— com.commonsware.cwac:camera:0.5.4 | \— com.android.support:support-v4:18.0.+ -> 18.0.0 \— com.android.support:support-v4:18.0.+ -> 18.0.0 Then, use the … Read more

No resource found that matches the given name: attr ‘android:keyboardNavigationCluster’. when updating to Support Library 26.0.0

I was able to resolve it by updating sdk version and tools in gradle compileSdkVersion 26 buildToolsVersion “26.0.1” and support library 26.0.1 https://developer.android.com/topic/libraries/support-library/revisions.html#26-0-1

How can I fix “unexpected element found in ” error?

The Android Gradle Plugin needs to know about new manifest elements, particularly for the manifest merger process. The plugin has a tendency to get confused if it sees elements in the manifest merger that it does not recognize, tossing out build errors like the one in the question. In this case, Android 11 introduced <queries> … Read more

Error “File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it” [duplicate]

You need to get the configuration file from the developer’s site and paste it in the app level directory of your project. Update: Goto https://console.firebase.google.com/ Select your project On the left menu, click on settings > project settings Add an app or download the google-services.json file under the Your Apps section.

The number of method references in a .dex file cannot exceed 64k API 17

You have too many methods. There can only be 65536 methods for dex. As suggested you can use the multidex support. Just add these lines in the module/build.gradle: android { defaultConfig { … // Enabling multidex support. multiDexEnabled true } … } dependencies { implementation ‘androidx.multidex:multidex:2.0.1’ //with androidx libraries //implementation ‘com.android.support:multidex:1.0.3’ //with support libraries } … Read more

How to use ThreeTenABP in Android Project

Attention: This answer, while technically correct, is now out of date Java 8+ API desugaring support now available via Android Gradle Plugin 4.0.0+ (Also see Basil Bourque’s answer below) Development on the ThreeTenABP Library is winding down. Please consider switching to Android Gradle plugin 4.0, java.time.*, and its core library desugaring feature in the coming … Read more

No version of NDK matched the requested version

The following solutions assume that the machine you are using currently has NDK installed and was previously able to build your project but started failing with the error “No version of NDK matched the requested version” after updating to Android Gradle plugin 3.6.0. Before proceeding make sure to have NDK installed. Option 1: You can … Read more

Manifest merger failed : uses-sdk:minSdkVersion 14

Note: This has been updated to reflect the release of API 21, Lollipop. Be sure to download the latest SDK. In one of my modules I had the following in build.gradle: dependencies { compile ‘com.android.support:support-v4:+’ } Changing this to dependencies { // do not use dynamic updating. compile ‘com.android.support:support-v4:21.0.0’ } fixed the issue. Make sure … Read more

How to set gradle home while importing existing project in Android studio

The gradle plugin (which contains a bundled version of gradle) should be already installed in where/you/installed/android-studio/plugins/gradle so you shouldn’t need to manually download it. Depending on the version of Android Studio, that last directory may be where/you/installed/android-studio/gradle/gradle-x.y.z (x.y.z is the version, so check your filesystem for the exact path). If you intend on doing gradle … Read more

Android Material and appcompat Manifest merger failed

I had similar problem. Added two lines in gradle.properties file: android.useAndroidX=true android.enableJetifier=true These two lines automatically resolved my dependency conflicts between google’s files and third party dependencies. Here’s the link to follow: https://developer.android.com/topic/libraries/support-library/androidx-overview#new-project

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)