android-gradle

Error when compiling with gradle (can't find downloaded dependencies)

对着背影说爱祢 提交于 2019-11-30 15:42:44
I develop an app generation system that is regenerating apps by command line gradle compilation commands. In my windows server 2008, I'm facing a huge problem after updating to the last gradle version and gradle plugin version. When compiling I'm getting this errors: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.0.0.aar\e93435c34d5cae8b6677dcef529711a5\res\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found. C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.0.0.aar

Build tools update breaks my compile

旧时模样 提交于 2019-11-30 15:23:53
I updated Android Studio 2.0 Preview from 4 to 5 this morning. If I continue to build with: dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha3' } this will still compile successfully. But if I move up to -alpha5 I get this error: Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. java.io.FileNotFoundException: C:....\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified) Shawn Thye From now on, I think Google expects us to not use this: 'com.google.android.gms:play-services:8.4.0'

com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;

穿精又带淫゛_ 提交于 2019-11-30 14:20:00
Hello I am working on a project for which I am using Android Studio. I have setup everything but when I run my project then I get below errors. I could not resolve it for last 2 days. What could be the problem in my project that causing this error Please help if anyone know about this. app build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "21.1.2" defaultConfig { applicationId "in.xyz" minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(

How to add linkedin sdk path in app gradle?

谁都会走 提交于 2019-11-30 14:07:41
I had followed so many tutorials to add linkedin sdk and sync gradle in my project but unable to did that. Downloaded linked sdk from https://developer.linkedin.com/downloads#androidsdk & unziped the folder then add the sdk file to my project directory. I mean copied that to project->app->lib path.Now i am getting the error while writing LISessionManager in activity.Something like this cannot resolve symbol 'LISessionManager' Here is my build.gradle(app module) file, apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId

how to resolve 'unable to find valid certification path to requested target' on Android Studio 2.3.2

不问归期 提交于 2019-11-30 13:41:41
I am getting following error in Android Studio 2.3.2 when i am trying to create Empty Activity project. I also getting this when i try to import a project. Error:Cause: unable to find valid certification path to requested target Here my gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } And apply plugin: 'com.android

Gradle error, failed to create directory

亡梦爱人 提交于 2019-11-30 13:33:28
today jump into such problem when launching test class using roboelectric and junit: Information:Gradle: Executing tasks: [:app:assembleDebug, :app:assembleDebugUnitTest] Error:Gradle: failed to create directory 'E:\AndroidKotlin\FooApp\app\build\generated\source\r\debug\com\example\foo\fooapp' Error:Gradle: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:Gradle: com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:Gradle: Execution failed for task ':app:processDebugResources'. > Failed to execute aapt

Class not found in aar

时光毁灭记忆、已成空白 提交于 2019-11-30 13:18:09
I'm getting class not found exception in my Android library (aar) when GoogleApiAvailability is called. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.GoogleApiAvailability" on path: DexPathList[[zip file "/data/app/com.myunityplugin.PushNotifications-1/base.apk"],nativeLibraryDirectories=[/data/app/com.myunityplugin.PushNotifications-1/lib/arm, /vendor/lib, /system/lib]] The error is self-explanatory, but I'm not sure what I'm doing wrong. I'm pretty new to gradle and AndroidStudio. I have the following under dependencies within my gradle.build:

“Execution of compression failed” error when building project in Android Studio 3.1

喜夏-厌秋 提交于 2019-11-30 13:17:17
I'm trying to build https://github.com/neural-nuts/Cam2Caption in Android Studio 3.1 Preview, but either I use very old build.gradle, or it dies with Error:Execution failed for task ':Application:packageDebug'. Execution of compression failed. this happens after doing a project clean, or a rebuild. OSX, latest most-everything. I'm using what I think is a default latest-and-greatest build.gradle classpath 'com.android.tools.build:gradle:3.0.0' ... android { compileSdkVersion 26 defaultConfig { minSdkVersion 26 targetSdkVersion 26 } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8

Android studio java.exe finished with non-zero exit value 3

爷,独闯天下 提交于 2019-11-30 13:09:45
I have pass through non-zero exit value 1,2, related to multidex issue, but now I am getting non-zero exit value 3. Studio Message : Information:Gradle: Executing tasks: [:emoticons_lib_proj:assembleDebug, :myProject_Developement:assembleDebug] Information:5/27/2015 5:56 PM - Compilation completed with 1 error and 0 warnings in 5m 58s 77ms Error:Gradle: Execution failed for task ':myProject_Developement:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_20\bin\java.exe'' finished with non-zero

How to prevent rawproto file generation or delete them automatically?

狂风中的少年 提交于 2019-11-30 12:12:19
Android gradle plugin generates tons of .rawproto files in build/android-profile directory. What are they used for? Is there a way to disable this madness or automatically delete them? I've been bugged by it for a long time, and now that I noticed there's gigabytes of this hogging my smallish SSD, I've decided to figure out a way to disable it. For me the most annoying thing before occupying too much space was gradlew clean leaving a build folder behind. Only tested with com.android.tools.build:gradle:3.0.1 , so YMMV. TL;DR For global application read last section, per-project use this in