build.gradle

Android: SearchableInfo is null when using packageNameSuffix in Gradle build script

主宰稳场 提交于 2019-12-01 06:14:48
问题 I encountered that the method getSearchableInfo always returns null during SearchView initialization if I use the packageNameSuffix in the project's Gradle build script. SearchView initialization: final SearchManager searchManager = (SearchManager) context.getSystemService(Context.SEARCH_SERVICE); SearchableInfo info = searchManager.getSearchableInfo(componentName); mSearchView.setSearchableInfo(info); Project's build.gradle: android { [...] buildTypes { debug { packageNameSuffix ".debug"

Failed to resolve: firebase-database-15.0.0

坚强是说给别人听的谎言 提交于 2019-12-01 05:24:49
connecting firebase real-time database with assistant when adding the dependencies of firebase database this error is showing: Failed to resolve: firebase-database-15.0.0 this also happened with authentication My android studio version 3.2 build September 18 There's an annoying bug in the new versions of Android Studio (I've seen versions 3.2.1 or higher on both Windows and Mac). if you integrate firebase automatically from tools, Thןד gives you an unwanted add-on that de-compile the program. for example: implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0' instead of:

Execution failed for task ':app:processReleaseGoogleServices'. > No matching client found for package name

本秂侑毒 提交于 2019-12-01 05:06:50
Anytime I try to build my project I keep getting this error: Execution failed for task ':app:processReleaseGoogleServices'. No matching client found for package name 'com.my.package' I have made and remade the google-services.json and have used the app and the package com.my.package . Here's my project build.gradle: buildscript { repositories { ... } dependencies { classpath 'com.android.tools.build:gradle:2.0.0-beta6' classpath 'com.github.JakeWharton:sdk-manager-plugin:220bf7a88a7072df3ed16dc8466fb144f2817070' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'io.fabric

Can't import project to android studio

偶尔善良 提交于 2019-12-01 04:48:54
I'm trying to use this library I've added compile 'net.rdrei.android.dirchooser:library:2.0@aar' to dependecies. My top level build file // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.8.+' } } allprojects { repositories { mavenCentral() } } And it gives me error "failed to refresh gradle project" with reference to the project, that I'm trying to import. This library is not on Central Maven as aar. Check here: http://search.maven.org/

com.android.build.transform.api.TransformException with android google play services

夙愿已清 提交于 2019-12-01 04:37:20
I'm trying to integrate Google Plus in my application, and it showing following error. below are exception and gradle Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1 app build.gradle apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { compileSdkVersion 23 buildToolsVersion "23.0.1"

Extending the Gradle Daemon idle timeout

浪子不回头ぞ 提交于 2019-12-01 04:13:03
问题 I'm using gradle and intellij to build my android project. I've noticed that after one minute the daemon process shut down and I can see in the daemon-11188.out.log that the idle timeout is set to 60000 (idleTimeout=60000). Here is the line from the log: 15:51:46.747 [INFO] [org.gradle.launcher.daemon.server.Daemon] start() called on daemon - DefaultDaemonContext[uid=1be5dcbe-d445-4cf6-87d8-03e443368b0c,javaHome=C:\Program Files\Java\jdk1.7.0_45,daemonRegistryDir=C:\Users\ry_000\.gradle

Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'

只愿长相守 提交于 2019-12-01 03:50:12
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { jcenter() mavenCentral() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath 'me.tatarka:gradle-retrolambda:3.6.1' classpath 'com.google.gms:google-services:3.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } app/build.gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.jakewharton:butterknife-gradle-plugin:8.7.0' } } android{ compileSdkVersion = 26 buildToolsVersion = "26.0.2" defaultConfig { minSdkVersion =

Execution failed for task: ':app:preDexDebug'

我只是一个虾纸丫 提交于 2019-12-01 03:49:55
I am experiencing that famous ':app:preDexDebug'-error. First of all: Cleaning the project or rebuilding it works without errors. Under default settings I set the project bytecode version to 1.7 and under SDK Location in the project structure the JDK location seems to be correct, too. After a while of researching I still did not find the solution for this problem. The error occurs when I try to run the project under Android Studio. Like mentioned before, cleaning, rebuilding and syncing with Gradle works fine (looks like it - no errors). This is what the gradle console shows: Configuration on

Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android

荒凉一梦 提交于 2019-12-01 03:38:40
While I am running android studio, the warning below appears: Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android. In case of problem, please repackage with jarjar to change the class packages How can I resolve this error? Thank you. CommonsWare answer is correct. Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android. If you are using gradle dependency try excluding org.json from the package. compile ('com.your.dependency.name:0.0.0'){ exclude group:

Gradle | Spring boot dependencies are not excluding

Deadly 提交于 2019-12-01 03:35:39
I'm trying to get log4j to work in a project that I'm working on. I added the relevant log4j dependencies in build.gradle and excluded the Spring boot starter logging so it can work. This worked fine when I used Maven as the build tool, but once I switched to Gradle it's not working at all (excepts the logging from Spring boot starter). Here are the dependencies in my build.gradle dependencies { compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('org.springframework.boot:spring-boot-starter-web'){ exclude module: 'org.springframework.boot:spring-boot-starter-logging' }