android-gradle

Error:(30, 0) Could not find method compile() for arguments

元气小坏坏 提交于 2019-11-29 16:23:40
I get this error. I'm pretty confused because i check everything in sdk manager and it's all updated (i think so). Error:(30, 0) Could not find method compile() for arguments [com.android.support:appcompat-v7:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Please install the Android Support Repository from the Android SDK Manager. Open Android SDK Manager Is there something wrong with my code in build.grandle: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google(

Android project uses HttpClient 4.5

自作多情 提交于 2019-11-29 15:47:49
I would like to use Apache HttpClient 4.5, so the line compile 'org.apache.httpcomponents:httpclient:4.5' is added in my build.gradle, and I get the following in Gradle Console Configuration on demand is an incubating feature. WARNING: Dependency org.apache.httpcomponents:httpclient:4.5 is ignored for debug as it may be conflicting with the internal version provided by Android. In case of problem, please repackage it with jarjar to change the class packages I would like to know what is the problem and how could I solve it. Thanks^^ Go to Apache , I have found for Android they use HttpClient

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug' android studio

有些话、适合烂在心里 提交于 2019-11-29 14:43:46
I create a game on buildbox I export the project but I can't start the game on android studio My problem is that I can't run the application or produce an apk file someone can help me please. The error Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [C:\Users\youne\Desktop\android2\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\youne.gradle\caches\transforms-1\files-1.1\support-core-ui-25.2.0.aar\9adfc8649fc899fbc5e371e8bc1c399a\jars\classes.jar(;;;;;;**.class)] (Duplicate zip entry [classes

zip.ZipException: duplicate entry: annotations/Beta.class

一个人想着一个人 提交于 2019-11-29 14:28:48
I have been struggling for more that a day to fix the duplicate entry given when running my android project. Error: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.> java.util.zip.ZipException: duplicate entry: com/google/common/annotations/Beta.class I've tried to exclude various modules as well as enable multiDex, and have hit a wall, please help me solve this problem: part of code: compile(project(path: ':k_endpoint', configuration: 'android-endpoints')) { exclude(group: 'com.google.guava', module: 'guava-jdk5') exclude(group: 'com.android.support', module: 'support

Could not GET 'https://jcenter.bintray.com/com/google/' Received status code 502 from server: Bad Gateway [duplicate]

旧巷老猫 提交于 2019-11-29 14:25:27
This question already has an answer here: Unable to get dependencies from jcenter with a new project [closed] 10 answers My project has no problem till yesterday. Today my team and I get the same problem while building the project. Could not GET ' https://jcenter.bintray.com/com/google/android/gms/play-services-location/maven-metadata.xml '. Received status code 502 from server: Bad Gateway I have no clue why this error suddenly came to all of us. What could be the reason? Why bintray is not reachable? Complete Stack trace org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not

Gradle Duplicate Entry

不羁的心 提交于 2019-11-29 14:17:34
I integrated the Digits mobile sdk into my project and it wouldn't build anymore. It has some kind of a clash with gson library that i am using. I get this error during the build: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: com/google/gson/Gson$5.class this is my build.gradle buildscript { repositories {maven { url 'https://maven.fabric.io/public' }} dependencies {classpath 'io.fabric.tools:gradle:1.+'}} apply plugin: 'com.android.application' apply plugin: 'io.fabric' android { compileSdkVersion 22 buildToolsVersion

Cannot access ActivityCompatApi23 class

人走茶凉 提交于 2019-11-29 14:05:49
I am having runtime problems with my gradle file. I added this compile 'com.google.android:flexbox:0.3.1' as a compile time dependency to my Gradle file. I encountered an error and added this in my project level Gradle file. maven { url "https://maven.google.com" } Which finally looked liked this after adding the above allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } After adding the above in my app level Gradle file I am now encountering a different error when I am trying to run my app. So I did the following as per some answers from SO. Tried a Clean and

java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzbq.class

拜拜、爱过 提交于 2019-11-29 13:55:12
I am new in Android. i am currently working in android app and when i try to run the app this error occurs. I have researched but cant solve this error. error build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { multiDexEnabled true applicationId "com.tutorialsbuzz.androidfacebook" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { mavenCentral() }

Gradle “manifest requires a placeholder substitution” error but manifestPlaceholders supplies a value

落爺英雄遲暮 提交于 2019-11-29 13:39:29
I'm trying to perform substitution within the AndroidManifest.xml file from the build.gradle android extension but am getting this error: AndroidManifest.xml:89:16 Error: Attribute uses-library#com.company.platform.${encoding}@name at AndroidManifest.xml:89:16 requires a placeholder substitution but no value for <encoding> is provided. /Users/Company/Desktop/Checkout/android/Project/app/src/main/AndroidManifest.xml:0:0 Error: Validation failed, exiting :app:processDebugManifest FAILED This is a snippet of the manifest file: ... </receiver> <uses-library android:name="com.company.platform.$

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

China☆狼群 提交于 2019-11-29 13:12:06
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:bolts-android:1.+' } dependencies { compile fileTree(dir: 'libs', include: '*.jar') compile 'com