build.gradle

Unable to find method 'com.android.tools.r8.Version.getVersionString()Ljava/lang/String;'

纵然是瞬间 提交于 2019-12-24 12:59:31
问题 I have updated my android studio to 3.4. I am getting error while making release build. Unable to find method 'com.android.tools.r8.Version.getVersionString()Ljava/lang/String;'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this

IllegalStateException:buildToolsVersion is not specified

北城以北 提交于 2019-12-24 12:01:30
问题 My project is comprised of two modules, one is the application module and the other is a library module. My build processes works fine until I added two gradle plugins : This is the root build.gradle : buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4' // NOTE: Do not place your application dependencies here; they

React native fbsdk build error Could not find method implementation()

。_饼干妹妹 提交于 2019-12-24 11:49:17
问题 I am using RN 0.55.4 react-native-fbsdk 0.8.0 There is a build error Where: Build file 'C:\Users\WOT\fdrrnc\node_modules\react-native-fbsdk\android\build.gradle' line: 30 What went wrong: A problem occurred evaluating project ':react-native-fbsdk'. Could not find method implementation() for arguments [com.android.support:appcompat-v7:27.0.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. This my gradle on android/build.gradle dependencies {

Why the build process ignore proguardFiles getDefaultProguardFile('proguard-android.txt')

你说的曾经没有我的故事 提交于 2019-12-24 10:16:14
问题 All the while, I don't have any issue with my build process. I'm using latest build.gradle . I'm using Android Studio 3.1.3. build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' classpath 'com.google.gms:google-services:3.2.0' } } allprojects { repositories { google() jcenter() maven { url "https://jitpack.io" } } }

java.lang.RuntimeException: Internal error in Firestore (0.6.6-dev) after updating Firestore version

心不动则不痛 提交于 2019-12-24 08:42:22
问题 I am getting below error after updating from firestore:17.0.1 to firestore:17.0.2 java.lang.RuntimeException: Internal error in Firestore (0.6.6-dev). at com.google.firebase.firestore.g.zza.zzb(SourceFile:324) at com.google.firebase.firestore.g.zzd.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:7331) at java.lang

Execution failed for task ':app:dexDebug'

假装没事ソ 提交于 2019-12-24 08:38:29
问题 This is my gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion '20.0.0' defaultConfig { applicationId "com.nifty.eattime.eattime" minSdkVersion 15 targetSdkVersion 20 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE-FIREBASE.txt' exclude 'META-INF/NOTICE' } }

android studio connection reset error

不羁的心 提交于 2019-12-24 04:26:09
问题 I've downloaded a sample project (TimePicker-master) weeks ago from GitHub and since then when ever I try to sync that project i get this error. Gradle 'TimePicker-master'project refresh failed Error: Connection reset i have tried different proxies but it did not work. because i don't know what the problem even is? and i didn't found the reason searching online now i get the same problem when i try to download intelliJ plugins while I'm using proxies. what is the problem and how do i solve it

Android gradle : Error No resource found that matches the given name: attr when refer to an android lib

风格不统一 提交于 2019-12-24 00:53:42
问题 I tried to migrate my android project from Maven to Gradle then i have this error: Gradle: No resource found that matches the given name: attr 'mdActiveIndicator'. Thanks for your help to find a solution. This is My Project structure: MediaProject build.gradle (%1) settings.gradle (%2) HoloCircleSeekBar build.gradle (%3) src/main/res/values attrs.xml (%4) MediaAppli telecommande build.gradle (%5) src/main/res/values styles.xml (%6) content of build.gradle in MediaProject (%1) allprojects {

android studio 3.1.4 offline mode

你说的曾经没有我的故事 提交于 2019-12-24 00:39:36
问题 I'm trying to build the project with offline-mode in Android Studio. So, Unzip the gradle-plugin (version 4.4) and set Gradle path & Service directory path. Finally check 'Offline work'. When Sync the gradle, it occur the problem. The Error Message 'No cached version of com.android.tools.build:gradle:3.1.4 available for offline mode.' Installed SDK Platform List Android API 28 Android SDK Platform 28 Sources for Android 28 Android 8.0(Oreo) Android SDK Platform 26 Sources for Android 26

Automatically run Gradle task in project build with IntelliJ IDEA

笑着哭i 提交于 2019-12-23 20:24:54
问题 I have an IntelliJ IDEA Gradle project using JPA2 Metamodel generation with the JpaModelgen Gradle Plugin (similar configured as here) To get the Java files generated I have to trigger the specific task manually. Is there any way to include a Gradle task into the IntelliJ project build process? 来源: https://stackoverflow.com/questions/44717328/automatically-run-gradle-task-in-project-build-with-intellij-idea