build.gradle

Google Play Game Services + BaseGameUtils added to a Gradle project = package does not exist

社会主义新天地 提交于 2019-12-20 01:41:56
问题 I already read many answers on this subject but can't fix my problem, and here it is : I have a gradle project that is a game, in that game I want to add google game services like I successfully did with 'type-a-number' (which is NOT a gradle project). But I get the following error: Gradle: error: package com.google.example.games.basegameutils does not exist Gradle: error: cannot find symbol class BaseGameActivity Gradle: error: cannot find symbol variable super NOTE : in my activity

Google Play Game Services + BaseGameUtils added to a Gradle project = package does not exist

时光毁灭记忆、已成空白 提交于 2019-12-20 01:41:01
问题 I already read many answers on this subject but can't fix my problem, and here it is : I have a gradle project that is a game, in that game I want to add google game services like I successfully did with 'type-a-number' (which is NOT a gradle project). But I get the following error: Gradle: error: package com.google.example.games.basegameutils does not exist Gradle: error: cannot find symbol class BaseGameActivity Gradle: error: cannot find symbol variable super NOTE : in my activity

Android Studio Gradle Error - preDexDebug

邮差的信 提交于 2019-12-20 01:15:26
问题 I recently added a new activity to my android studio project and now I am getting an error when I try and run it. It builds fine but I get the error below when I run it: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:preDexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/dx --dex --output /Users/davidcavanagh/joshcpdandroid/app/build/intermediates

Unable to build feature modules in a multi-flavor app

六月ゝ 毕业季﹏ 提交于 2019-12-19 19:22:58
问题 I am using Gradle 4.4 with Gradle-Android plugin 3.1.1 on Android Studio 3.1.1. I have 2 flavors 'a' and 'b' and I am unable to build my project due to the following error: Cannot choose between the following configurations of project :app: - aDebugMetadataElements - bDebugMetadataElements All of them match the consumer attributes: - Configuration 'aDebugMetadataElements': - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - Found com.android

Unable to build feature modules in a multi-flavor app

自作多情 提交于 2019-12-19 19:19:19
问题 I am using Gradle 4.4 with Gradle-Android plugin 3.1.1 on Android Studio 3.1.1. I have 2 flavors 'a' and 'b' and I am unable to build my project due to the following error: Cannot choose between the following configurations of project :app: - aDebugMetadataElements - bDebugMetadataElements All of them match the consumer attributes: - Configuration 'aDebugMetadataElements': - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - Found com.android

Single flavor module based on multi flavor library in Gradle

≯℡__Kan透↙ 提交于 2019-12-19 13:50:29
问题 I'm working on a multi-flavor app . (gradle files below) It uses a library called tracker that follow the same flavors internal and external Now for the tricky part, come a new module called feature , this one has no flavor but it needs the tracker as dependency app.gradle: android { buildTypes { debug { } release { } } flavorDimensions "target" productFlavors { internal { dimension "target" } external { dimension "target" } } } tracker.gradle: android { publishNonDefault true buildTypes {

Cannot create variant 'android-lint' after configuration

谁都会走 提交于 2019-12-19 13:07:18
问题 I am updating my project's Gradle plugin from 2.1.2 to 3.1.0 but the gradle starts throwing error while build : Cannot create variant 'android-lint' after configuration ':app:debugRuntimeElements' has been resolved project level gradle : // Top-level build file buildscript { repositories { jcenter() mavenCentral() maven { url 'https://maven.fabric.io/public' } maven { url 'https://maven.google.com/' name 'Google' } google() } dependencies { classpath 'com.android.tools.build:gradle:3.1.1'

Upload failed: Your Instant App APKs should contain at least one base APK

我与影子孤独终老i 提交于 2019-12-19 09:06:16
问题 I need to prepare an Alpha testing for an Instant App and It run like a charm on Android Studio but It is failing when I try to upload it to the PlayStore, saying: Upload failed Your Instant App APKs should contain at least one base APK. The app structure is done using three modules: - base : It contains all the code - apk : Wrapper to obtains the installable apk - instantApp : Wrapper to obtain the instantApp apk This are the build.gradles: base/build.gradle buildscript { repositories {

Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'

笑着哭i 提交于 2019-12-19 06:03:18
问题 build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { jcenter() mavenCentral() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath 'me.tatarka:gradle-retrolambda:3.6.1' classpath 'com.google.gms:google-services:3.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } app/build.gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.jakewharton:butterknife-gradle-plugin:8

Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android

安稳与你 提交于 2019-12-19 05:43:40
问题 While I am running android studio, the warning below appears: Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android. In case of problem, please repackage with jarjar to change the class packages How can I resolve this error? Thank you. 回答1: CommonsWare answer is correct. Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android. If you are using gradle