build.gradle

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

早过忘川 提交于 2019-12-30 09:43:08
问题 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' } }

Android Studio 3 + Gradle 4.0 + shrinkResources + libraryProject = Unable to find a matching configuration in project

我怕爱的太早我们不能终老 提交于 2019-12-30 08:13:14
问题 I've problems to migrate my project to the newest Gradle 4.0 + Android Studio 3 version, which gives me all kind of errors. Little by little I managed to sort them all out except this one. Could not resolve all dependencies for configuration ':app:forGoogleCoverageRuntimeClasspath'. > Unable to find a matching configuration in project :mylibrary: - Configuration 'debugApiElements': - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'AndroidTypeAttr{name=Aar}' and found

java.util.zip.ZipException: duplicate entry: android/support/v4/view/MotionEventCompatEclair.class

耗尽温柔 提交于 2019-12-30 07:42:37
问题 I'm new to android studio and am trying to import a project from eclipse but I feel like i am running into every single problem possible. The error I'm currently getting is: Error:Execution failed for task ':jobFlexwithInvoice:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: android/support/v4/view/MotionEventCompatEclair.class Ive seen similar answers to problems like here and here. But i think I need more help because its just not going away. I've added the

java.util.zip.ZipException: duplicate entry: android/support/v4/view/MotionEventCompatEclair.class

℡╲_俬逩灬. 提交于 2019-12-30 07:41:07
问题 I'm new to android studio and am trying to import a project from eclipse but I feel like i am running into every single problem possible. The error I'm currently getting is: Error:Execution failed for task ':jobFlexwithInvoice:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: android/support/v4/view/MotionEventCompatEclair.class Ive seen similar answers to problems like here and here. But i think I need more help because its just not going away. I've added the

Android/Gradle: conditionally apply plugin based on build type

不羁的心 提交于 2019-12-30 05:56:40
问题 I would like to make something like (pseudo code): if (BuildType == "release"){ apply plugin: 'testfairy' } else if (BuildType == "debug"){ apply plugin: 'io.fabric' } The idea is that based on the build type, apply (or not) a plugin. How to do it ? 回答1: With Gradle 4.6, the following works: if (getGradle().getStartParameter().getTaskRequests().toString().contains("Release")) { apply plugin: 'testfairy' } else if (getGradle().getStartParameter().getTaskRequests().toString().contains("Debug"))

Android wear project with 3 flavors, 3 buildTypes and 2 applicationIdSuffixes

允我心安 提交于 2019-12-30 03:45:47
问题 When I build my project after trying to combine wearApp flavors and buildTypes with applicationIdSuffixes, i get the following error message: Error:Execution failed for task ':app:handleFirstCustomerTestMicroApk'. > The main and the micro apps do not have the same package name. From my app/build.gradle: buildTypes { debug { applicationIdSuffix '.debug' debuggable true embedMicroApp = true } customerTest { applicationIdSuffix '.customertest' debuggable true embedMicroApp = true } release {

Compilation failed: org.gradle.internal.exceptions.LocationAwareException

大憨熊 提交于 2019-12-30 02:53:41
问题 i want to build my project but suddenly that error comes from nowhere. there are no error in my project. please someone help me my gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.mqa.android.monas" minSdkVersion 19 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }

Execution failed for task ':app:packageDebug' - Failed to read zip file

左心房为你撑大大i 提交于 2019-12-30 02:42:05
问题 Without any changes in my code, suddenly i get this error when I try to run my app: What went wrong: Execution failed for task ':app:packageDebug'. com.android.builder.packaging.PackagerException: java.io.IOException: Failed to read zip file 'C:\Users\Eliran\AndroidStudioProjects\Forum\app\build\outputs\apk\app-debug.apk'. I have no idea why its trying to read the apk as zip file. If I restart Android Studio, I can run the app once and then It happens again. 回答1: For me it helps (for now)

Android Studio update 0.5.3 - platform 'android-19' not found

半世苍凉 提交于 2019-12-30 00:28:34
问题 Yesterday I opened Android Studio and it asked me to be updated. I now have v0.5.3, SDK 19 fully installed and gradle 0.9.+. I think this information is correct but I'm not fully aware how the gradle strategy works. The problem is that my gradle apps stopped syncing and even when I create a brand new project it does not sync. Here are the details: Project's build.gradle: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {

Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7

非 Y 不嫁゛ 提交于 2019-12-29 08:27:12
问题 I'm studying this Building Simple Chat Client with Parse and I'm using gradle 2.4 to build my project. My build.gradle and AndroidManifest.xml codes are: build.gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.3' } } apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" } repositories { jcenter() } dependencies { compile fileTree(dir: 'libs', include: 'Parse-*.jar') compile 'com.parse.bolts