build.gradle

Failed to find: com.android.support:support-v4:22.2.0

随声附和 提交于 2019-12-22 05:29:27
问题 I am trying to do an application but there seems to be some error with the gradle files now. It was working fine until I upgraded the support libraries. I was working with api 21 which worked fine, but then i upgraded to api22 and changed the gradle files accordingly.. Now this error shows up. Error:Failed to find: com.android.support:support-v4:22.2.0 This is my current gradle file : apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1"

error while generating signed apk task app:packageRelease

久未见 提交于 2019-12-22 04:57:10
问题 Error:A problem was found with the configuration of task ':app:packageRelease'. File '/Volumes/Data/Android apps/NammaKarnataka-master/app/build/intermediates/res/resources-release-stripped.ap_' specified for property 'resourceFile' does not exist. The following error message occurred while I tried to generate signed apk on Android studio 2.2. What additional information is required in order to solve this issue? 回答1: Add shrinkResources , set to false , to the release clause: buildTypes {

How to update imported modules with code modification from the their external library project in Gradle/Android Studio

核能气质少年 提交于 2019-12-22 04:42:31
问题 I'm developing an android app, in which I recently migrated from Eclipse to Android Studio and Gradle. In my projected I created 5 UI Libs, and added them as modules in my project, libs I have created are pushed on my github account (publicly). In eclipse when you add external dependency for a project marked as lib, when you update the external project's code then you clean your build, your project get these updates, but in Gradle I noticed that it creates Physical Copies, completely

Android Studio: ExternalSystemException

南笙酒味 提交于 2019-12-22 04:32:24
问题 When I am opening a project (Android Application) in my Android Studio, it shows externalSystemException. (I cloned this android application into my system from a github repo). Event Log: ExternalSystemException: Unable to save '/home/prasang/Privly/privly-android/local.properties'/home/rest path of app/-android/local.properties (Permission denied) 回答1: I'm not sure if you are using a mac or a windows machine but this fix will work for Mac. I encountered the same error after cloning a copy of

Failed to resolve common open file gradle.build

我的未来我决定 提交于 2019-12-22 02:06:23
问题 I have been struggling with the past 6 hours over this one error, which i am not able to resolve.I imported the project directly from nextgis github. Please identify whats wrong and how to rectify it. here's the screen-shot of the error here the build.gradle file from the module which contiains the error apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion '27.0.3' defaultConfig { minSdkVersion 14 targetSdkVersion 26 versionCode 37 versionName '2.5.7.1'

Gradle duplicate entry error: META-INF/MANIFEST.MF (Or how to delete a file from jar)

社会主义新天地 提交于 2019-12-22 01:57:36
问题 I've cloned a github repository because I wanted to study the code, but when I tried to build it in Android Studio, I ran into some trouble. After adding the google maven repository (as prompted by Android Studio) and updating both the Gradle Plugin Version and the Grade Version (to 3.5.2 and to 5.4.1, respectively), the build fails because of the following error: Cause: duplicate entry: META-INF/MANIFEST.MF And this, to be more specific: Caused by: java.util.zip.ZipException: duplicate entry

Error:Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

我们两清 提交于 2019-12-22 01:57:24
问题 After updating android studio to 1.1.0 in Ubuntu always showing this error.My logcat is: org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)** android studio 1.0,0.8 is working fine . **org.gradle.tooling.GradleConnectionException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.2.1-all.zip'. at** org.gradle.tooling.internal.consumer

Gradle 14.4 Fails to Build - Gradle DSL method not found 'packageName()'

此生再无相见时 提交于 2019-12-22 01:25:08
问题 I'm using productFlavors and attempting to change the packageName depending on the flavor: productFlavors { flavor1 { packageName "com.mypackagename.one" } flavor2 { packageName "com.mypackagename.two" } } This was working fine until I updated to Gradle 0.14.4, now it fails with the following message: Error:(21, 0) Gradle DSL method not found: 'packageName()' Possible causes: The project 'MyProject' may be using a version of Gradle that does not contain the method. <a href="open.wrapper.file"

How to integrate Liferay DXP with Apache POI?

杀马特。学长 韩版系。学妹 提交于 2019-12-21 22:53:52
问题 I'm trying to integrate Apache POI in Liferay DXP(OSGi) , but unable to resolve dependencies with POI 3.17 version in gradle project. I've created standalone project with below JAR's : poi-3.17.jar poi-ooxml-3.17.jar poi-ooxml-schemas-3.17.jar xmlbeans-2.6.0.jar commons-collections4-4.1.jar Also, I've added below gradle dependencies added in build.gradle compile group: 'org.apache.poi', name: 'poi', version: '3.17' compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.17' compile

Spark/Gradle — Getting IP Address in build.gradle to use for starting master and workers

非 Y 不嫁゛ 提交于 2019-12-21 22:22:29
问题 I understand at a basic level the various moving parts of build.gradle build scripts but am having trouble tying it all together. In Apache Spark standalone mode, just trying to start a master and worker on the same box from build.gradle. (Later will extend with call with $SPARK_HOME/sbin/start-slaves with the proper argument for masterIP.) Question: How can I assign my IP address to a variable in Groovy/build.gradle so I can pass it to a command in an Exec task? We want this to run on a