build.gradle

Dependencies not showing up in jar with Gradle?

一世执手 提交于 2019-12-10 23:14:54
问题 I am using this build.grade. When I run gradlew build , it generates a jar file only with the source, not the stone.jar in the libs folder. How should I be doing this? apply plugin: 'java' apply plugin: 'eclipse' // Source sets in the project, specify source directories sourceSets { main { java.srcDir("${projectDir}/src/") resources.srcDir("${projectDir}/src/") } } // Dependencies for the project are stored in the libs directory dependencies { compile fileTree(dir: 'libs', include: ['*.jar'])

AWS Java SDK is taking old version of jackson jar

最后都变了- 提交于 2019-12-10 22:04:52
问题 Currently I am working to add AWS Java SDK in my existing application to perform operations related to AWS cloud. While importing the aws java sdk for latest version i.e.1.11.113 I am getting run time exception. After researching about exception the reason is java sdk using deprecated version or incompatible version for jackson jar. The sdk is using jackson jar of version 4.1 while required version must at least 5. Even I am giving latest jackson jar but still it is taking reference of jar

Gradle can't manage to add compile 'com.google.android.gms:play-services:7.0.0'

情到浓时终转凉″ 提交于 2019-12-10 22:03:41
问题 I can't belive that no one found out how to solve this problem. I wanted to add a banner to my app, but Android Studio's Gradle system tries to convience my that this is not so good idea. It looks like this: apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.(package).(name)" minSdkVersion 15 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles

Gradle Multiproject

廉价感情. 提交于 2019-12-10 20:47:12
问题 I am trying to configure gradle for a multiproject environment. My project structure is as follows: MainProject --external --A --B --C I have been able to configure the build.gradle and the settings.gradle file for the MainProject. The problem that I have is that both subprojects A & B depend on C In project A 's build.gradle apply plugin: 'android-library' dependencies { compile fileTree(dir: 'libs', include: '*.jar') compile project('../C') } Gradle says unable to find project with path ..

Data Binding with Android Studio 3.0 Canary 3

徘徊边缘 提交于 2019-12-10 20:02:12
问题 I am trying to use DataBinding in my existing project. As per the documentation I added below lines in app module's build.gradle and compiled the project. dataBinding { enabled = true } I got the below error: Could not resolve all dependencies for configuration ':app:devDebugCompileClasspath'. Could not find com.android.databinding:baseLibrary:3.0.0-alpha3. Searched in the following locations: file:/C:/Users/incnayak/AppData/Local/Android/sdk/extras/m2repository/com/android/databinding

Gradle sync Error:Configuration with name 'default' not found

 ̄綄美尐妖づ 提交于 2019-12-10 19:48:23
问题 I want to add an external library GuillotineMenu-Android in my application. I followed the steps given in the most upvoted answer to an existing question How do I add a library project to the Android Studio? But I am facing error when I try to build project after step 6 i.e. when added dependency in app/build.gradle as compile project(":guillotinemenu") . I tried all the stackoverflow links related to this error but its not working out. I have made a folder named libs in my app directory and

Installation failed with message Error: android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space

回眸只為那壹抹淺笑 提交于 2019-12-10 19:22:25
问题 I was getting the message > Installation failed with message Failed to establish session. so following some responses to the problem I disabled Instant Run and I started getting > Installation failed with message Error: android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space. I´ve tried rebuilding, cleaning the project, to disable and enable Instant Run and to build APK but nothing solves the problem. This is my build.gradle (Module:app). apply

Can't create folder “debug” Android studio

痞子三分冷 提交于 2019-12-10 19:12:41
问题 Hi am presently trying to build my project in android but i keep getting this Error:Execution failed for task ':app:transformClassesWithDexForDebug'. java.io.IOException: Could not delete folder C:\Users\Henry\Desktop\Andriod\World\GATES\app\build\intermediates\transforms\dex\debug\folders\1000 even when i decided to delete the folder by myself i got this Error:Execution failed for task ':app:transformClassesWithDexForDebug'. java.io.IOException: Could not create empty folder C:\Users\Henry

Cannot add task ':app:reportSourceSetTransformTest' as a task with that name already exists

故事扮演 提交于 2019-12-10 18:55:29
问题 Minimum supported gradle version 4.6 Current version is 4.4. After updating gradle version to 4.6, am getting this error Cannot add task ':app:reportSourceSetTransformTest' as a task with that name already exists. How can I avoid this error. It seems like two different files have same task. But I didnot find any or explicitly define any task in my app level build.gradle file. My project level build.gradle file is this: buildscript { repositories { google() jcenter() mavenCentral() maven { url

Execution failed for task ':app:transformClassesWithMultidexlistForRelease'

廉价感情. 提交于 2019-12-10 18:33:28
问题 I am getting this error in gradle console when I remove the line --dontobfsucate from my proguard rule file. Otherwise I am able to successfully generate the apk. I was previously facing this problem before My Previous Problem. But i was able to resolve that by options --stacktrace --debug . I think I have removed redundant grade redundancies. 13:10:41.397 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 13:10:41.397 [ERROR] [org.gradle