build.gradle

Upgrade issue in gradle build tools version from 1.2.3 to 1.3.1

℡╲_俬逩灬. 提交于 2019-12-07 13:57:36
问题 I've upgraded the gradle build tools from 1.2.3 to 1.3.1 and started seeing the following error on gradle sync. I had no issues with 1.2.3 version. I'm on gradleVersion 2.3. Is there anyway I can avoid this error? Error:Your project contains 2 or more modules with the same identification com.salesforce.android:AndroidCommon at ":AndroidCommon" and ":AndroidCommon:AndroidCommon". You must use different identification (either name or group) for each modules. AndroidCommon is one of the

Android: Didn't find class “Picasso” on path: DexPathList (Failed resolution of: Picasso)

元气小坏坏 提交于 2019-12-07 13:57:33
问题 First of all I know this error has been asked already but my case is a little different: I'm distributing SDK (Android library project). My SDK needs among others things (play services, support v4, gson jars etc.) Picasso so I have in my gradle.build : compile 'com.squareup.picasso:picasso:2.5.2' Now when I test importing the resulted aar file from this library project to my sample app - all works fine. The problem is that my customer when importing the aar file into his app project, trying

Error with transformClassesWithDesugarForDebug

倾然丶 夕夏残阳落幕 提交于 2019-12-07 13:32:39
问题 I'm having trouble compiling an APK (debug or release). Android Studio 3.0 Beta 5 This is my build.gradle (app) buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } repositories { maven { url 'https://maven.fabric.io/public' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.my.package" minSdkVersion

JaCoCo & Gradle - Filtering Options

拜拜、爱过 提交于 2019-12-07 12:10:40
问题 I'm currently using the Gradle plugin to run JaCoCo for code coverage repots. I wanted to specify in my build.gradle some filtering options; https://github.com/jacoco/jacoco/wiki/FilteringOptions I can see that this is possible from the Maven plugin; e.g. https://github.com/timezra/jacoco-scala-maven-plugin From the Gradle doco here there appears no clear way on how to do this. How can I set filtering options for JaCoCo when running as part of a build.gradle script? 回答1: Gradle's JaCoCo

Android gradle build failed with Nullpointer Exception

点点圈 提交于 2019-12-07 10:54:32
I am trying to build a Android project in CentOS machine as part of Continuous Integration. Dev team builds in Windows and it works fine in their machine. In CentOS machine, I am seeing below error. Any idea what is going wrong. Below is the stacktrace. I have set proxy info in gradle.properties. I have setup Android build tools and platform tools. * What went wrong: A problem occurred configuring project ':app'. > java.lang.NullPointerException (no error message) * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.ProjectConfigurationException: A

Android update causing error: Error:java.nio.file.AccessDeniedException: /home/path/.android/build-cache.lock

旧巷老猫 提交于 2019-12-07 08:20:54
问题 Updated Android Studio from version 2.3 to 3.1 Canary. But there seems to be a huge problem with Gradle . Error:java.nio.file.AccessDeniedException: /home/pathname/.android/build-cache.lock What I did: Deleted .gradle , thought it will solve the issue, but not, after rebuilding the project, .gradle again appears. Deleted all android related things from system (SDK, Android Studio and remaining projects) and from zero started to download Android Studio with all required packages. Still, the

INSTALL_FAILED_INVALID_APK error with debug version code 1 inconsistent with 0

我与影子孤独终老i 提交于 2019-12-07 07:56:46
问题 I have built an Android app on Android Studio version 2.3.3. As I try to deploy the app to a phone (lennovo) or an emulator (GenyMotion) I get an error, which says: INSTALL_FAILED_INVALID_APK: /data/app/vmdl235652946.tmp/4_yCommerceApp-b_c-dev-debug version code 1 inconsistent with 0. I have looked at various posts here and tried the approaches below, none of which seems to help Did a clean build followed by a rebuild after a restart of the Android Studio Disconnected and reconnected devices

Intellij Idea log GradleConnectionException: Could not execute build using Gradle installation while building

[亡魂溺海] 提交于 2019-12-07 06:09:12
问题 I use Intellij Idea 13.1.1 and I get GradleConnectionException while building: Error:org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle installation 'C:\Users\<USER_NAME>\.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10'.: Could not execute build using Gradle installation 'C:\Users\<USER_NAME>\.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10'. I've seen similar question here and googled it. But it didn't

Android Annotations could not find AndroidManifest.xml

∥☆過路亽.° 提交于 2019-12-07 05:25:31
问题 I've checked a few different questions, but none of them provided a solution which worked for me. I'm developing a project with Android Annotations, and when I attempt to build my project it fails with the following error (Project_Location is simply my local project folder): error: Could not find the AndroidManifest.xml file in specified path : [/Project_Location/mobile/build/intermediates/manifests/full/debug/AndroidManifest.xml] Here is my mobile build.gradle file: apply plugin: 'com

Kotlin Application with Gradle application plugin

て烟熏妆下的殇ゞ 提交于 2019-12-07 05:08:31
问题 I am trying to create a simple HelloWorld application using kotlin , gradle , and the gradle application plugin. When I run it with the below setup I get the following error: Error: Main method is not static in class com.petarkolaric.helloworld.Main, please define the main method as: public static void main(String[] args) My build.gradle : group 'helloworld' version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.2.0' repositories { mavenCentral() } dependencies { classpath "org