Tag: gradle

“The signing configuration should be specified in Gradle build scripts”… I did it

I have a big issue when I come to sign my application: I have set the signing configuration in accordance with the doc: signingConfigs { release { storeFile file(“lomapnew.keystore”) storePassword “myPassword” keyAlias “myAlias” keyPassword “Something….” } } But I still get this error message: “The signing configuration should be specified in Gradle build scripts”

How to set android app version by number of build in Jenkins?

Application is automatically building by jenkins after successful push, but version is always 1.0. Instead of “0” I want to insert number of corresponding build in jenkins: 1.119, 1.120, 1.121… That is my build.gradle file // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() } […]

Add dependencies via gradle to eclipse in android project

i have a problem adding dependencies automatically to eclipse android project via gradle. I have only a little bit experience with gradle. Till now I have build two java projects with gradle. One jar and an executable-jar. This works without problems. I have used the eclipse plugin to generate the eclipse project and add the […]

Android, Gradle. How to build application and run tests from test application

I have android project and android test project inside it, located under folder tests. Structure of these project is eclipse like +-src | – res | – libs | – tests |….. I use gradle. All i want is to build app, run unit tests and get reports of them. But i don’t understand how […]

Getting the error “duplicate entry: com/google/android/gms/internal/zzble.class” when trying to add a package

I’m trying to add the react-native-firestack package to my app. But it keeps giving the following error : :app:mergeDebugResources UP-TO-DATE :app:recordFilesBeforeBundleCommandDebug :app:bundleDebugJsAndAssets SKIPPED :app:generateBundledResourcesHashDebug 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945 :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDebugJavaWithJavac UP-TO-DATE :app:compileDebugNdk UP-TO-DATE :app:compileDebugSources UP-TO-DATE :app:transformClassesWithJarMergingForDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task […]

Android/gradle: include version name from flavor in apk file name

I have found similar questions but nothing that quite works for what I want to do. I’m developing with Android Studio and gradle, and I have several flavors in my build file, each of which has a versionName. Is there a way to include the flavor’s version name in the APK file?

Gradle version 1.8 is required. Current version is 1.9-rc-3 – Android Studio

Gradle updates and error now, I can’t import my project. Error log: Could not execute build using Gradle distribution ‘http://services.gradle.org/distributions/gradle-1.9-rc-3-bin.zip’. Build file ‘/home/luiz/Dropbox/projetos/droido-beta/droido.torpedos/build.gradle’ line: 9 A problem occurred evaluating project ‘:droido.torpedos’. A problem occurred evaluating project ‘:droido.torpedos’. Gradle version 1.8 is required. Current version is 1.9-rc-3. If using the gradle wrapper, try editing the distributionUrl […]

assembleRelease task dependency – Ask for keystore password

To avoid writing the keystore password in plain text, I’m trying to add a dependency to the assembleRelease task created by the android Gradle plugin. I’ve checked the Gradle documentation Manipulating existing tasks but I’m unable to place the dependency where it should This is my task, defined in $root$/myApp/build.gradle above the android plugin. task […]

Android – Proguard with httpcore and httpmime using Android Studio and Gradle

I’m developing an app with Android Studio 1.0.2 and Gradle 1.0.0 using the Apache libraries httpmime and httpcore for multipart entities. Here’s my build.gradle: apply plugin: ‘com.android.application’ android { compileSdkVersion 21 buildToolsVersion “21.1.1” // Something wrong with the http* libs packagingOptions { exclude ‘META-INF/DEPENDENCIES’ exclude ‘META-INF/NOTICE’ exclude ‘META-INF/LICENSE’ exclude ‘META-INF/DEPENDENCIES.txt’ exclude ‘META-INF/LICENSE.txt’ exclude ‘META-INF/NOTICE.txt’ exclude […]

com.android.builder.testing.ConnectedDevice > hasTests FAILED

i have try my best to test my android project with gradle on, but failed. can you help me with it?Thank you. This is my project: https://github.com/SnowdreamFramework/android-log and i provide my error log with the attachment. [0K$ echo no | android create avd –force -n test -t android-21 –abi armeabi-v7a Android 5.0 is a basic […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.