build.gradle

All com.android.support libraries must use the exact same version specification found versions 25.2.0, 25.0.0

别等时光非礼了梦想. 提交于 2019-12-06 02:11:05
After my android studio today from version 2.2.3 to 2.3 then i got this error in build.gradle on the 'com.android.support:appcompat-v7:25.2.0' dependencies. But the project still can be run. and i run a Gradle dependency report to see what my full tree of dependencies. Display as below. But i still do not know how to fix this error. Dependency Tree ------------------------------------------------------------ Project :app ------------------------------------------------------------ compile - Classpath for compiling the main sources. +--- com.github.bumptech.glide:glide:3.7.0 +--- project

Android Studio 3.0.1 NDK fatal error: stdint.h: No such file or directory

荒凉一梦 提交于 2019-12-06 01:53:48
My Application having native code was running perfect with previous Android Studio version. I just Updated to 3.0.1 and getting this error /Users/salman.nazir/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h fatal error: stdint.h: No such file or directory I checked the directory, stdint.h file is there in the mentioned path. Should i need to set something to get that file accessed? Note : I am using MacOS I just remove the ndk-bundle (latest version 16) folder from the SDK folder and put there older

Android: Didn't find class “Picasso” on path: DexPathList (Failed resolution of: Picasso)

假如想象 提交于 2019-12-06 01:11:10
First of all I know this error has been asked already but my case is a little different: I'm distributing SDK (Android library project). My SDK needs among others things (play services, support v4, gson jars etc.) Picasso so I have in my gradle.build : compile 'com.squareup.picasso:picasso:2.5.2' Now when I test importing the resulted aar file from this library project to my sample app - all works fine. The problem is that my customer when importing the aar file into his app project, trying to launch inside his app the Activity related with my SDK functionality getting the above error: Failed

Force task execution in Gradle

时光总嘲笑我的痴心妄想 提交于 2019-12-06 01:06:08
问题 A certain amount of Gradle tasks I wrote, don't need any in- or output. Because of that, these tasks always get the status UP-TO-DATE when I call them. An example: task backupFile(type: Copy) << { //Both parameters are read from the gradle.properties file from file(adjusting_file.replaceAll("\"", "")) into file(backupDestinationDirectory + "/main/") println "[INFO] Main file backed up" } Which results in the following output: :gradle backupFile :backupFile UP-TO-DATE Is there a way to force a

How do I overwrite a task in gradle kotlin-dsl

北城以北 提交于 2019-12-06 00:52:40
In Groovy, I overwrite a task like this: task jar(overwrite: true) { ... } How do I do that with Kotlin-dsl? I know that I can create a task like this: tasks { val jar by creating { ... } } but I can't find the equivalent way to declare it as overwrite, this leads to an error By opening an issue on the kotlin-dsl github I found the correct syntax: tasks.replace("jar") { ... } However, this is the old way and does not work within a tasks { } block, so this issue will be further tracked here 来源: https://stackoverflow.com/questions/48553029/how-do-i-overwrite-a-task-in-gradle-kotlin-dsl

Gradle project refresh failed in Android Studio 1.2.1.1

廉价感情. 提交于 2019-12-06 00:35:53
I created sample project on the fresh installation of the Android Studio v 1.2.1.1 and i faced with this error message: Gradle project refresh failed in Android Studio 1.2.1.1 See image below: So i tried to find any solution on the Google and i checked gradle.properties file where is: dependencies { classpath 'com.android.tools.build:gradle:1.2.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } After that i tried to update all SDK libraries using SDK manager And after that i tried to find issue in settings (see image) But

IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;

喜你入骨 提交于 2019-12-05 23:32:02
问题 I'm using Android Studio + gradle on MyProject + Facebook api as a library. See below settings. I've tried removing all references of support-v4 (either r7 or 18.0.0) and replace them with support-v13, but the message with v4 was still present. I've also noticed that support-v4-r7 appears in External libraries, even though it's not referenced at all, anywhere. Would that be the problem ? MyProject build.gradle: buildscript { repositories { mavenCentral() } dependencies { classpath 'com

Manifest merger failed: Attribute application@appComponentFactory

纵饮孤独 提交于 2019-12-05 23:31:36
问题 So all good but I'm trying to add this library https://github.com/wdullaer/MaterialDateTimePicker with this implementation 'com.wdullaer:materialdatetimepicker:4.0.1' And suddenly when I sync my Graddle it give me this error Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86

AppCompatDelegate Failed to instantiate custom view inflater android.support.v7.app.AppCompatViewInflater

只谈情不闲聊 提交于 2019-12-05 22:01:01
问题 When Getting Release apk am getting this error log in all activities of the app 04-03 17:10:54.105 26527-26527/? I/AppCompatDelegate: Failed to instantiate custom view inflater android.support.v7.app.AppCompatViewInflater. Falling back to default. java.lang.ClassNotFoundException: android.support.v7.app.AppCompatViewInflater at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:309) at java.lang.Class.forName(Class.java:273) at android.support.v7.app.j.b

Cannot build project due to gradle project sync in progress

一个人想着一个人 提交于 2019-12-05 21:53:12
I'm new on using android project version 0.82. I was creating a new apps (from scratch), and then I try to run the app. but the build process take forever because the gradle project sync failed, and in the top of the text editor, it says gradle project sync in progress. this takes forever. I've check the graddle wrapper properties, I've finished download the gradle 1.12 in the project before. here is the idea log 2014-08-06 22:51:33,707 [ 284991] INFO - llij.help.impl.HelpManagerImpl - Failed to load help set from 'jar:file:///C:\Users\stephen\AppData\Local\Android\android-studio\help\ideahelp