build.gradle

NDK Debugging with gradle-experimental plugin

亡梦爱人 提交于 2019-12-01 11:52:43
问题 I'm trying to add native debugging to a project that is an Android Studio NDK project. In the past I just used gradle to kick off a shell script, which built the NDK lib. Now I'm trying to move to use the gradle-experimental plugin. I've scoured the net for what little info there is, (mostly here, Android Tools Site - Gradle Experimental), about using gradle-experimental with the NDK and I've put together this build.gradle file which is using the preview NDK support for doing the NDK build

:app:transformClassesWithMultidexlistForDebug FAILED

僤鯓⒐⒋嵵緔 提交于 2019-12-01 11:08:57
I have tried the following links http://developer.android.com/intl/es/tools/building/multidex.html UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define com.android.build.transform.api.TransformException ':app:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: when i added Facebook latest SDK in my studio project Android Studio TransformException : Error:Execution failed for task ':app:transformClassesWithDexForDebug' Java finished with non-zero exit value 2 - Android Gradle com.android.build.transform.api

how to capture Build Info using Gradle and Spring Boot

孤街醉人 提交于 2019-12-01 11:08:20
I am trying to get access to build info values such as version in my Java main application using Spring Boot and Gradle. I can't find any documentation / examples of how to configure the build.gradle application.yml (if required) Java main class could someone please help with a small code example for the above files. In my build.gradle file I will have the version entry, so how to get this into Java main class using Spring Boot and Gradle. build.gradle version=0.0.1-SNAPSHOT I've tried adding build.gradle apply plugin: 'org.springframework.boot' springBoot { buildInfo() } but the buildInfo()

Gradle build for set of Android projects (including libraries)

China☆狼群 提交于 2019-12-01 11:04:58
I have 2 Android apps with 5 Android modules (Android library project). Total 7 Eclipse projects. I want to enable Gradle build for them. I added build.gradle in the root folder and listed all project in settings.gradle include ':app1' include ':app2' ... However I discovered that I need to copy-paste section below in every one of 7 project android { compileSdkVersion 19 buildToolsVersion "19.0.3" defaultConfig { minSdkVersion 1 targetSdkVersion 19 versionCode 1 versionName "1.0" } ... // and so on like source folders configuration } Reason: when I add apply plugin: 'android' inside root build

How to make an Android Library available via build.gradle?

痞子三分冷 提交于 2019-12-01 09:29:55
I made an android library that I'd like upload to make it available for all the android devs via build.gradle. I've followed these steps and these steps , but this is the first time that I'm doing this and can't achieve it. I'd appreciate advices or instructions from some of you that already made it. But I'm not even sure what do I have to do. I wanna make my library available for all the android developers by writing something like this in their build.gradle: compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' I tried with the links the other answers suggested but I think the steps

Gradle build for set of Android projects (including libraries)

给你一囗甜甜゛ 提交于 2019-12-01 07:49:56
问题 I have 2 Android apps with 5 Android modules (Android library project). Total 7 Eclipse projects. I want to enable Gradle build for them. I added build.gradle in the root folder and listed all project in settings.gradle include ':app1' include ':app2' ... However I discovered that I need to copy-paste section below in every one of 7 project android { compileSdkVersion 19 buildToolsVersion "19.0.3" defaultConfig { minSdkVersion 1 targetSdkVersion 19 versionCode 1 versionName "1.0" } ... // and

Upload failed: Your Instant App APKs should contain at least one base APK

泄露秘密 提交于 2019-12-01 07:33:48
I need to prepare an Alpha testing for an Instant App and It run like a charm on Android Studio but It is failing when I try to upload it to the PlayStore, saying: Upload failed Your Instant App APKs should contain at least one base APK. The app structure is done using three modules: - base : It contains all the code - apk : Wrapper to obtains the installable apk - instantApp : Wrapper to obtain the instantApp apk This are the build.gradles: base/build.gradle buildscript { repositories { jcenter() } } apply plugin: 'com.android.feature' repositories { jcenter() mavenCentral() flatDir { dirs

Build script error, unsupported Gradle DSL method found: 'release()'! when uograded to 0.5.1

怎甘沉沦 提交于 2019-12-01 06:52:08
问题 Not able to solve this error, I have updated Android studio. gone throungh other this solutions but not worked for me, please help.. Build script error, unsupported Gradle DSL method found: 'release()'! Possible causes could be: - you are using Gradle version where the method is absent - you didn't apply Gradle plugin which provides the method - or there is a mistake in a build script Gradle settings Gradle version - 0.9 Main gradle. // Top-level build file where you can add configuration

Extending the Gradle Daemon idle timeout

佐手、 提交于 2019-12-01 06:48:05
I'm using gradle and intellij to build my android project. I've noticed that after one minute the daemon process shut down and I can see in the daemon-11188.out.log that the idle timeout is set to 60000 (idleTimeout=60000). Here is the line from the log: 15:51:46.747 [INFO] [org.gradle.launcher.daemon.server.Daemon] start() called on daemon - DefaultDaemonContext[uid=1be5dcbe-d445-4cf6-87d8-03e443368b0c,javaHome=C:\Program Files\Java\jdk1.7.0_45,daemonRegistryDir=C:\Users\ry_000\.gradle\daemon,pid=11624,idleTimeout=60000,daemonOpts=-Dfile.encoding=windows-1252] I tried everything but couldn't

Could not find com.squareup.picasso:picasso:2.5.2

前提是你 提交于 2019-12-01 06:33:55
I adding picasso dependencies but seem it not worked. I tried changing the version. But still useless. This my build.gradle (module) apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '23.0.3' defaultConfig { applicationId "bhouse.travellist_starterproject" minSdkVersion 21 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support