android-gradle

Gradle version 1.10 is required. Current version is 2.2.1. in android

可紊 提交于 2019-11-30 09:38:17
I had an Android project built with Android Studio and trying to import and run it on my Android Studio but facing the below error when trying to Sync the project Failed to sync Gradle project 'project-android' Error:Gradle version 1.10 is required. Current version is 2.2.1. If using the gradle wrapper, try editing the distributionUrl in /Users/username/apps/android/project-android/gradle/wrapper/gradle-wrapper.properties to gradle-1.10-all.zip. Please fix the project's Gradle settings in Gradle settings gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists

Android Studio 1.0RC4 Gradle build error

旧巷老猫 提交于 2019-11-30 09:08:50
I just downloaded Android Studio 1.0RC4 and I can't build any project, even newly created ones. The error I got is: Error:Could not run build action using Gradle distribution ' https://services.gradle.org/distributions/gradle-2.2.1-all.zip '. I was able to download the zip from the browser but it's not working on AS. This is my build.gradle file: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.0.0-rc1' // NOTE: Do not place your application

Duplicate entry: com/google/firebase/FirebaseApiNotAvailableException.class

元气小坏坏 提交于 2019-11-30 09:02:51
I have an Android project built with React-Native and employing Google Play Services (analytics, cloud messaging, ads). I'm not explicitly using Firebase anywhere. Tried upgrading the Play Services from 8.4.0 => 9.2.0. Also upgraded the GPS classpath. buildscript { dependencies { classpath 'com.google.gms:google-services:3.0.0' ... dependencies { compile 'com.google.android.gms:play-services-analytics:9.2.1' compile 'com.google.android.gms:play-services-ads:9.2.1' compile 'com.google.android.gms:play-services-base:9.2.1' compile 'com.google.android.gms:play-services-gcm:9.2.1' Notice that I'm

Error:Could not find com.android.tools.build:gradle:3.3. Issue raise after upgrading gradle version for splunk:mint-android-sdk

坚强是说给别人听的谎言 提交于 2019-11-30 09:02:19
My App was working fine, then i add com.splunk:mint-android-sdk, which required upper version of gradle, so i upgrade the gradle to from 2.1 to 3.3. after that i am facing issues. Please review my gradle file and help me out and please guide me how it work.( This is my first app but i want sure make its should be working fine in all scenario ) Error:Could not find com.android.tools.build:gradle:3.3. Searched in the following locations: file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/3.3/gradle-3.3.pom file:/C:/Program Files/Android/Android

What is the default for minifyEnabled for buildType not explicitly scripted?

穿精又带淫゛_ 提交于 2019-11-30 08:50:30
I imported several eclipse projects to Android Studio (v1.1). In the original Eclipse environment, they use Proguard for release mode. In the Android Studio environment, this was translated to the following in the build.gradle script (by the import, not by me): buildTypes { release { minifyEnabled true proguardFiles 'proguard.cfg' } } I understand that this means that "in release build, enable Proguard's minify, using proguard.cfg" . The problem, however, is that minify seems to be happening in non-release build (i.e. debug) as well! How is this possible? What is the default for minifyEnabled

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android [duplicate]

烈酒焚心 提交于 2019-11-30 08:45:24
This question already has an answer here: Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm 43 answers Can anyone tell me why I am receiving this error? I have downloaded a series of projects from GitHub for a Udacity course. Since there are about 50 or 60 projects (Exercises and Solutions) in the repo, I presume it has to do with the fact that each is an individual project on its own. I do not have a problem usually when I fork a repo and clone it locally. I have read other posts about uninstalling and reinstalling ndk in the sdk. But I really want to know why

flavorDimensions gradle error - Android Studio 3.0 Canary 1

匆匆过客 提交于 2019-11-30 08:38:07
I would like to upgrade my project to Android Studio 3.0 Canary 1 and the gradle:3.0.0-alpha1 plugin, however I have a problem with the correct definition of flavors for included projects. I followed the official migration guide from Google: https://developer.android.com/studio/preview/features/new-android-plugin-migration.html In my main app build.gradle I defined the "myflavor" flavorDimensions , as recommended by the migration guide: android { flavorDimensions "myflavor" productFlavors { dev { dimension "myflavor" minSdkVersion 21 } prod { dimension "myflavor" minSdkVersion 16 } }

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

我与影子孤独终老i 提交于 2019-11-30 08:21:06
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. For me it helps (for now) when I Exit Android Studio , next I used Windows Task Manager (Ctrl + Shift + Esc) and kill process Java(TM)

how can I use Android dexOptions?

爱⌒轻易说出口 提交于 2019-11-30 08:20:40
What are the meaning of the dexOptions.incremental, etc. Any body can explain them to me. dex options android { dexOptions { incremental false preDexLibraries = false jumboMode = false javaMaxHeapSize "2048M" } } This affects all tasks using dex. wyverny boolean incremental Whether to enable the incremental mode for dx. This has many limitations and may not work. Use carefully. String javaMaxHeapSize Sets the -JXmx* value when calling dx. Format should follow the 1024M pattern. boolean jumboMode Enable jumbo mode in dx (--force-jumbo). boolean preDexLibraries Whether to pre-dex libraries. This

How Do We Inherit Test Classes Across Android Library Modules?

Deadly 提交于 2019-11-30 08:19:56
I have an Android Studio project with two library modules: foo-module and bar-module . Each implements a library, with foo-module defining a strategy interface and bar-module depending upon foo-module and implementing such a strategy. foo-module has instrumentation tests ( foo-module/src/androidTest/ ) to test its core code, using a stub strategy implementation, and bar-module should have its own instrumentation tests. I defined an AbstractTests class in foo-module/src/androidTest/ that does most of the actual testing. I also have a StubTests class in foo-module/src/androidTest/ that extends