build.gradle

Updated AndroidStudio(3.5.3) not building Android Project, Caused by: org.gradle.api.resources.ResourceException:Unable to load Maven meta-data

前提是你 提交于 2020-03-10 05:02:40
问题 Updated Android Studio not building Android Project, before it was building. I have checked with Proxy settings still it is getting same Below are the exceptions after rebuilding the Android Project. org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'Gsa2_NewMenu'. Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom'. at org.gradle

android studio 0.4.2: Gradle project sync failed error

試著忘記壹切 提交于 2020-03-07 02:36:10
问题 After updating to 0.4.2 I get this error when opening a project: 'Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work proprerly' The event log shows this: Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34) at org.gradle

android studio 0.4.2: Gradle project sync failed error

橙三吉。 提交于 2020-03-07 02:35:25
问题 After updating to 0.4.2 I get this error when opening a project: 'Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work proprerly' The event log shows this: Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34) at org.gradle

Migrating project to new experimental gradle plugin 0.6.0-alpha3 -> 0.6.0-alpha5

笑着哭i 提交于 2020-03-05 07:54:09
问题 I try to migrate my Android project to new experimental gradle plugin. I followed instructions at this page. I made changes in required files, but I have an error when I try to Sync project with gradle files. Error:Exception thrown while executing model rule: BaseComponentModelPlugin.Rules#createBinaryTasks apply plugin: 'com.android.model.application' def opencv_modules = ["shape", "stitching", "objdetect", "superres", "videostab", "calib3d", "features2d", "highgui", "videoio", "imgcodecs",

gradle custom task that depends on build task without testing

主宰稳场 提交于 2020-03-04 23:21:19
问题 I am using gradle 6.0.1 I am trying to write my on task, but I want first the the build task is executed but without tests. I tried (from build.gradle): task startEnv(type: GradleBuild) { tasks = ['build'] doLast { // START ENV CODE } } However, I don't manage to find a way to call build without running tests, as I would run gradle build -x test Is it possible to achieve this functionality? Another option I can use, is to check inside my startEnv task whether build already exists and run this

gradle custom task that depends on build task without testing

醉酒当歌 提交于 2020-03-04 23:19:30
问题 I am using gradle 6.0.1 I am trying to write my on task, but I want first the the build task is executed but without tests. I tried (from build.gradle): task startEnv(type: GradleBuild) { tasks = ['build'] doLast { // START ENV CODE } } However, I don't manage to find a way to call build without running tests, as I would run gradle build -x test Is it possible to achieve this functionality? Another option I can use, is to check inside my startEnv task whether build already exists and run this

Cannot exclude directories for a Gradle copy task

为君一笑 提交于 2020-03-01 04:53:10
问题 I have a gradle script in which I want to copy 3 directories into another folder. But I also have to exclude directories. This is the tree structure I start with: src > java > tms > common src > java > tms > dla src > java > tms > server src > java > tms > javaserver > common src > java > tms > javaserver > dock > transaction > local src > java > tms > javaserver > dock > transaction > tcd src > java > tms > javaserver > dock > transaction > files The folders I want to copy are: src > java >

Could not resolve com.android.tools.build:gradle:3.3.2

我的梦境 提交于 2020-02-29 10:49:48
问题 I was trying to add firebase auth to my android project but getting this error. I have tried adding 'com.google.firebase:firebase-core:16.0.3' too but its taking more than 40 mins and still not syncing the gradle. This is build.gradle file: apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { compileSdkVersion 28 defaultConfig { applicationId "myaid.startup" minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName "1.0"

How to generate an executable .sh file with Gradle?

↘锁芯ラ 提交于 2020-02-24 11:51:49
问题 I have a Java project in Eclipse. It works fine and I can run it from cmd using java -jar sample-app.jar I now have to use Gradle to produce an executable sh file for use in Linux. I've found some resources on creating start scripts but the most I've managed to do is use the standard 'startScripts' task to create a sample.app.bat file. I've scoured question after question and page after page on google to try and find an answer and I'm not having much luck. I've also read through the Gradle

How to generate an executable .sh file with Gradle?

我的未来我决定 提交于 2020-02-24 11:51:15
问题 I have a Java project in Eclipse. It works fine and I can run it from cmd using java -jar sample-app.jar I now have to use Gradle to produce an executable sh file for use in Linux. I've found some resources on creating start scripts but the most I've managed to do is use the standard 'startScripts' task to create a sample.app.bat file. I've scoured question after question and page after page on google to try and find an answer and I'm not having much luck. I've also read through the Gradle