build.gradle

Peer not authenticated while importing Gradle project in eclipse

百般思念 提交于 2019-11-26 04:36:32
问题 While I am importing gradle project in eclipse, it is giving me this error. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project \'test\'. > Could not resolve all dependencies for configuration \':classpath\'. > Could not resolve de.richsource.gradle.plugins:gwt-gradle-plugin:0.3. Required by: :test:unspecified > Could not GET \'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/de/richsource/gradle/plugins/gwt-gradle-plugin

More than one file was found with OS independent path 'META-INF/LICENSE'

一笑奈何 提交于 2019-11-26 04:07:27
问题 When i build my app, I got follow error . Error:Execution failed for task \':app:transformResourcesWithMergeJavaResForDebug\'. More than one file was found with OS independent path \'META-INF/LICENSE\' This is My build.gradle file apply plugin: \'com.android.application\' apply plugin: \'kotlin-android\' android { compileSdkVersion 25 buildToolsVersion \"25.0.2\" defaultConfig { applicationId \"cn.sz.cyrus.kotlintest\" minSdkVersion 14 targetSdkVersion 25 versionCode 1 versionName \"1.0\"

Android dependency has different version for the compile and runtime

本秂侑毒 提交于 2019-11-26 03:51:19
问题 After updating Android Studio from Canary 3 to Canary 4 , the following error is thrown at the build time. Android dependency \'com.android.support:support-support-v4\' has different version for the compile (25.2.0) and runtime (26.0.0-beta2) classpath. You should manually set the same version via DependencyResolution. I ran a complete search throughout the project and the version 25.1.0 is no where used. App-build.gradle android { compileSdkVersion 26 buildToolsVersion \'26.0.0\'

Error:Conflict with dependency 'com.google.code.findbugs:jsr305'

一曲冷凌霜 提交于 2019-11-26 03:47:28
问题 I created a new project in Android Studio 2.2 Preview 1 with Android App and Backend module with Google Messaging. This is the app file: apply plugin: \'com.android.application\' android { compileSdkVersion 23 buildToolsVersion \"23.0.3\" defaultConfig { applicationId \"com.xxx.xxx\" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName \"1.0\" testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\" } buildTypes { release { minifyEnabled false proguardFiles

Android studio adds unwanted permission after running application on real device

巧了我就是萌 提交于 2019-11-26 03:14:07
问题 After running application on device application required unwanted location permission that is not mention in manifest file. While when I am running same code from my friend Android studio than its run normal without extra permission required. Manifest file <uses-sdk android:minSdkVersion=\"14\" android:targetSdkVersion=\"21\" /> <uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\" /> <uses-permission android:name=\"android.permission.INTERNET\" /> <uses-permission android

How to manually include external aar package using new Gradle Android Build System

╄→尐↘猪︶ㄣ 提交于 2019-11-26 03:13:52
问题 I\'ve been experimenting with the new android build system and I\'ve run into a small issue. I\'ve compiled my own aar package of ActionBarSherlock which I\'ve called \'actionbarsherlock.aar\'. What I\'m trying to do is actually use this aar to build my final APK. If I include the whole ActionBarSherlock library as an android-library module to my main project using compile project (\':actionbarsherlock\') I\'m able to build successfully without any problems. But my problem is that I want to

How/when to generate Gradle wrapper files?

时光毁灭记忆、已成空白 提交于 2019-11-26 03:04:19
问题 I am trying to understand how the Gradle Wrapper works. In many source repos, I see the following structure: projectRoot/ src/ build.gradle gradle.properties settings.gradle gradlew gradlew.bat gradle/ wrapper/ gradle-wrapper.jar gradle-wrapper.properties My questions: How/when does one generate gradlew / gradlew.bat ? Are you supposed to generate them only one time when the project is first created, do you generate them every time you commit/push changes? And how are they generated? Same

Execution failed for task &#39;:app:compileDebugAidl&#39;: aidl is missing

廉价感情. 提交于 2019-11-26 02:56:23
问题 I installed Android Studio on my computer. I created a new project but that got me the error below. What can I do? Error:Execution failed for task \':app:compileDebugAidl\'. > aidl is missing My Android Studio version is 1.1.0 . This is my build.gradle file: buildscript { repositories { jcenter() } dependencies { classpath \'com.android.tools.build:gradle:1.1.0\' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

Why are there two build.gradle files in an Android Studio project?

被刻印的时光 ゝ 提交于 2019-11-26 02:33:38
问题 After having imported an Eclipse project into Android Studio, I see two build.gradle files: 1 - <PROJECT_ROOT>\\build.gradle 2 - <PROJECT_ROOT>\\app\\build.gradle The first version is shorter, the second version contains definitions for compileSdkVersion , etc. What is the purpose behind having two separate files? Are there separate build tasks? 回答1: <PROJECT_ROOT>\app\build.gradle is specific for app module . <PROJECT_ROOT>\build.gradle is a "Top-level build file" where you can add

Gradle: Execution failed for task &#39;:processDebugManifest&#39;

て烟熏妆下的殇ゞ 提交于 2019-11-26 02:06:56
问题 I\'m getting a gradle error at building since yesterday - it just came randomly.... Full stacktrace here: My project depends on multiple libraries and it built without any problems until yesterday (even with the librarys) compile \'com.google.android.gms:play-services:3.1.36\' compile \'com.android.support:support-v4:13.0.0\' compile project(\":libs:DatabaseCreationHelper\") compile project(\":libs:actionbarsherlock\") Anyone has an idea how to fix it? it just randomly came... Full stacktrace