I'm trying to update the fresco library to the latest version (0.14.1) in the build.gradle file as per the instructions specified by the official website.
It worked when I used earlier version but can't update to the new one.
Below is the error message.
Error:Could not find com.facebook.fresco:fresco:0.14.1.
Required by:
Coupon:app:unspecified
Search in build.gradle files
I've invalidated and cached the Android Studio. I've re-build and cleand the project number of times. It is of no use.
Edit: 0.14.1 should now work.
Previous answer:
Please use 0.14.0 for now. 0.14.1 will be available shortly, we're still in the process of publishing the update.
I had the same issue, after banging my head for hours I realised that was caused by proguard configuration, I copied the most up to date rules from here and it dissappeared.
Related
My gradle build completes successfully, but I get:
WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.5.31` that
might work differently than in the requested version `1.6.10`.
All of my build.gradle.kts scripts refer to using version 1.5.31. The only association my project has with version 1.6.10 is that Android Studio has the Kotlin version 1.6.10 plugin added. If I try to disable that plugin, I get a message that several other plugins will be disabled. If I accept that, android studio crashes and will not start up again. It won't start up again even if you reinstall android studio again. The solution is to find the file named "disabled-plugins.txt" and delete that file. It's in your AppData folder and in a JetBrains subdirectory. It turns out that it's one or more of those other disabled plugins that prevents Android Studio from starting up again.
The question I have is how do I fix this version mismatch issue. I can't delete the plugin from Android Studio for the reasons I mentioned above. If I try to update my project to using version 1.6.10 I get literally 100's of unresolved dependencies. And it seems from opinionated investigation that 1.6.10 still have too many issues for general use.
By the way, when I look at the gradle window for the project I can see where the dependencies come from. Usually when I look at the gradle window I just see sub project folders that I can drill into for more information, but for this project, it has an additional folder name dependencies. I don't know how they get into my project. But when I look at their version numbers that's where the 1.6.10 mismatch happens.
So, I think I understand why the warning message is valid, I'm at a lost on what I need to do to correct this situation. For the moment, I'm just ignoring the warning, and so far I'm not finding any issues in proceeding that way. But that's means I'm proceeding, without an understanding of what's going on here! Sometimes that's okay and at other times that's a bad judgment The error message itself seems inverted. I would think that 1.6.10 is the embedded kotlin and kotlin-dsl since it an android studio plugin, but the error message seems to say it in the opposite way. So anyway, if someone can bring some clarity as to what's going on, and how I'm thinking wrongly about this problem would be greatly appreciated.
I'll accept the following as the answer to what's going on about the unsupported kotlin version:
https://github.com/gradle/gradle/issues/13020
So, for the moment, I'll go on like this is just a nuisance warning and ignore that.
What I just did was to re-create my Android Studio from a blank brand new project. I copied and pasted stuff from the previous project into the new project. I copied the source and build.script.kts files, so essentially everything is a copy of the disabandoned project. This new project didn't give me the WARNING message anymore. And in additional, I'm now able to upgrade my project to using kotlin 1.6.10, which I previously couldn't do because of the literally 100's of dependencies resolution issues. Whatever, that issue went away, and a lot of others things started working as expected once I recreated the project. I can't say what got my project into that weird state. Deleting the .gradle and .idea folders, wouldn't fix the problem. I didn't try deleting the JetBrains cache, I wish I would have tried that.
I am working on a project that will have a 3D model viewer in one fragment. In order to do so, I decided to use sceneform.
I downloaded sceneform plugin into Adnroid studio, downloaded and extracted sdk from Github, and I also copied libsceneform_runtime_schemas library into my project. I've added to my sceneform buil.gradle file line
implementation files("../libs/libsceneform_runtime_schemas.jar")
but that results in an error:
Program type already present: com.google.ar.schemas.lull.AabbDef
It is worth noticing that this is the first file in the jar under this path - which probably means that there will be more collisions.
If I'd try not to implement this library, then I get an error:
error: package com.google.ar.schemas.sceneform does not exist
I am using ar:core:1.17.0, and minSdkVersion 24 in sceneform gradle.
I've cleaned and rebuilt the project, Invalidate Caches/Restart, and added multiDexEnabled- although I am not sure if I did it correctly.
By using gradlew sceneform:dependencies I didn't find mentioned file.
I don't know how I can move forward, any help is much appreciated. If I can provide additional information, please let me know.
Edit 1:
I've also tried to work with
implementation files("../libs/libsceneform_runtime_schemas.jar"){
exclude ...
}
But I couldn't make it work. I wonder if that could be my solution.
Also, why does it try to implement this class since it already exists? Shouldn't there be some sort of check for that?
I solved my problem by restoring my project from repo to the last moment before including sceneform, and I proceeded with all of the steps again; Gradle dependencies to the libsceneform_runtime_schemas, min java 8, min SDK version, copying scenformscr and sceneformux to my project again, and lastly - upgrading all classes to AndroidX.
After two days almost I couldn't remove the error, and I don't know what went wrong before, but this time it works like a charm.
TL;DR - I removed the sceneform from my project and imported it again.
I have imported an Google Speech API example from Google.
https://github.com/GoogleCloudPlatform/android-docs-samples/tree/master/speech/Speech
It is unable to resolve R.layout
I have cleaned & rebuilt the project
Attempted to change the gradle 4.1 to gradle 2.9. Which it did not
allow me because the minimum gradle required is gradle 4.1
The xml files are from Google, so I assumed they were okay. Still checked them anyway
I also inserted the credential.json inside the project. This is taken from the Google Cloud Platform, if anyone is thinking of using this example. This is very important
The catlog is also giving me this error :
Error:Could not determine the dependencies of task ':app:extractIncludeDebugProto'.
> Resolving configuration 'debugCompile' directly is not allowed
Did anyone have this issue when the trying out this sample code?
Any input is greatly appreciated thanks :)
Problem solved, really stupid really.
Just redownloaded the sample , imported it into Android studio.
changed the gradle 3.0 from the initial stage instead of after
hope this helps :)
I'm stuck in my first real-time firebase app. :(
I was making a simple registration app using firebase and but I found a runtime error . please
remember I'm using android-studio 2.3.
Note- I've included google-services.json also in the required directory.
Error is
My project-level gradle file is
Note:- I think this problem might be----> "due to my sdk manager .but I dont'know how I check which sdk files are required for android studio 2.3 working with firebase".
or,
My app-level gradle file also may contain wrong firebase-auth /firebase-core dependency. please check it below in picture:-
Please guide me with pictorial way because this problem is not explained anywhere with a right solution.
Thanks in advance :)
After updating the SDK AndroidStudio told me to update to gradle:2.0.0-alpha5.
When I build/run the app gradle fails and says:
Error:Execution failed for task ':app:compileReleaseJavaWithJavac'.
java.io.FileNotFoundException: /home/pepperonas/IdeaProjects/Android/M104/app/build/intermediates/exploded-aar/com.google.android.gms/play-services/8.4.0/jars/classes.jar (No such file or directory)
Downgrading to gradle:2.0.0-alpha3 will solve it, but I want to use the newest version.
Does any body know how to fix it?
(Note: I use AndroidStudio 2.0 Preview 5)
As always, thanks in advance.
Found the solution:
Updating will do the trick.
'com.android.tools.build:gradle:2.0.0-alpha9'
UPDATE (2015-02-28)
alpha9 is available now
NOTE
Bookmark this page <- seems to be a MUST for every android-dev. :)
Unfortunately, you are the not the only one with this issue. There seems to be some bug on the alpha5 build for the Gradle build tools. There is already a ticket created on the Android Bug Tracker.
More info:
https://code.google.com/p/android/issues/detail?id=198937
In the meantime alpha3 build tool is the way to go about. I am doing the same thing as of now until the issue is resolved in the next release.
Hope this helps.
As per today (9.Mar.2016) com.android.tools.build:gradle:2.0.0-beta6 is available. Update your project/gradle.build. Also update gradle distribution to 2.11-all
Anyone interested in getting latest build updates view email for com.android.tools.build:gradle can go to bintray site and subscribe for it.
Update (9.Mar.2016)
com.android.tools.build.gradle 2.1.0-alpha1 has just been released.