build.gradle

Android Could not find class 'android.app.job.JobScheduler'

偶尔善良 提交于 2019-12-11 06:01:54
问题 I'm keep getting this error while build apk file with option minifyEnabled true . Application build process and installation been success but failed to launch with this error. I have tired to find the the class library. I'm not much familiar with Android app development, please help me with this, Error stack-trace 05-11 11:44:09.307 10196-10196/? E/cutils: to chown(/mnt/shell/emulated/0, 0, 0) 05-11 11:44:09.307 10196-10196/? E/cutils: to chown(/mnt/shell/emulated/obb, 0, 0) 05-11 11:44:09

An attempt by a client to checkout a Connection has timed out

假如想象 提交于 2019-12-11 05:42:19
问题 Please, can someone help? I am trying to run the application but it keeps getting this error. Did someone have a similar problem? Running gradle app 2019-01-07 23:29:19.827 WARN 4450 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/wikbit/configuration

Gradle shadow jar with conflicting dependencies

自闭症网瘾萝莉.ら 提交于 2019-12-11 05:28:10
问题 I'm playing with the idea of creating uber jars for my services but I'm worried about including jars that have conflicting dependencies. What happens when jar A depends on slf4j-1.0 and jar B depends on slf4j-2.0 and there were major changes between 1.0 and 2.0? When those jars both get included in the uber jar do I have to write specific filters by namespace or does something happen during the shadow process that namespaces the jars? thanks for the help 回答1: You are correct to worry. You end

What is correct version match between kotlin-gradle-plugin and kotlin-js-library?

独自空忆成欢 提交于 2019-12-11 05:21:12
问题 I have: ext.kotlin_version = '1.1.3' ext.kotlin_js_version = '1.1-M04' repositories { mavenCentral() maven{ url = "https://dl.bintray.com/kotlin/kotlin-dev/" } } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } then in another build.gradle: dependencies { compile "org.jetbrains.kotlin:kotlin-js-library:$kotlin_js_version" } But I always get: org.jetbrains.kotlin/kotlin-js-library/1.1-M04/ef6b315dbb89927eb72fbce262ba3a74dc1ebcb5/kotlin-js-library-1.1-M04

FirebaseInitProvider crash when trying to run app

本小妞迷上赌 提交于 2019-12-11 04:54:37
问题 I implemented the new FCM on the app following the steps on the FCM web. Now, I'm trying to run the app, but when I try it, the app crash with this error: 05-30 12:28:45.788 3002-3002/es.in2.otr.app.im E/AndroidRuntime: FATAL EXCEPTION: main Process: es.in2.otr.app.im, PID: 3002 java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.res.Resources

Which third-party dependencies are declared in the build.gradle of this Android Studio project?

假装没事ソ 提交于 2019-12-11 04:36:57
问题 I want to convert this Android Studio project into an Eclipse project. The way to do it is to copy everything in all src packages and res directory from AS project to Eclipse project, and change the Eclipse project's Manifest file by adding all the additional elements from AS project. The catch is that I have to do this for all the third party dependencies (declared in build.gradle) on which the AS project depends and then add those library projects to this newly created Eclipse project.

How can I specify gradle project properties in gradle.properties file?

末鹿安然 提交于 2019-12-11 04:09:35
问题 Is it possible to specify project properties such as name in gradle.properties file so will be possible to access them from build.gradle by using project.name ? I've tried with no luck: name=some project.name=some org.gradle.project.name=some 回答1: You can do it. For example in your root gradle.properties file you can have: VERSION_NAME=2.0.2 Then in your build.gradle file (in the root folder) you can have for example: allprojects { version = VERSION_NAME } If you would like to use it in your

How to speed up the tomcat starting process in gradle?

跟風遠走 提交于 2019-12-11 04:07:04
问题 Trying to start tomcat using this gradle code snippet task startTomcat(type:Exec) { workingDir tomcat_home + "\\bin" commandLine 'cmd', '/c', 'startup.bat' } After run this task tomcat is starting but gradle build process is hanged(waiting). How to solve this problem? 回答1: You can run this task in background but it will be maybe not difficult but problematic to keep control of the running process (e.g. stopping it on demand - which might be solved by adding stopTomcat task). What You need is

Apply a gradle plugin with a common configuration to all projects

可紊 提交于 2019-12-11 04:03:31
问题 I have a workspace with multiple unrelated gradle projects. I'm looking for a way to apply the artifactory plugin to all of them with a common configuration. So far, I tried creating this common gradle file, and applying it to each project (top level, not module) using apply from : buildscript { repositories { maven { url 'http://artifactory.mycompany.com/artifactory/plugins-release' } } dependencies { classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1" } } if (!project.plugins

Android Studio - Gradle: How to replace variables in a file

こ雲淡風輕ζ 提交于 2019-12-11 03:52:37
问题 Im fairly new to Gradle and have been using Eclipse and Ant to do all the builds. Within our app we have a config.properties file located in the assets folder at the same level as src and res etc. In this file we have the following: developmentsettings=true defaultLogLevel=4 prodEnvironment=false How can I replace the values of these 3 variables in the build.gradle file? Do I create a new task for this, and if so, is this within the android tag or not? Any and all help would be must