I have updated android studio to 0.5.9 and i downloaded the latest facebook SDK .
My problem is that whenever i try to import Facebook sdk from file ->import module->"facebook SDK path" the support v4 library magically disapears from extrernal libraries and i cant import anything from it(activityBar,fragments etc).So why is this happening?Am i missing something?
I was able to reproduce this while experimenting with test cases in response to this question and filed bug https://code.google.com/p/android/issues/detail?id=70825. We haven't found a root cause yet, but it seems only to happen if you're using Gradle 1.12.
Fortunately, there's a workaround, which is to switch to using Gradle 1.11 by setting the value in your gradle-wrapper.properties file:
distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-all.zip
Related
I am trying to solve this problem for a few days now. Whenever I import ARCore SDK, to Unity, I cannot compile my project.
The error I am facing now is:
Minimum supported Gradle version is 5.6.4. Current Version is 5.1.1. If using the gradle wrapper, try editing the distributionUrl.
I did so, I saw in my eyes a new version is imported but I am keep getting this error.
Here are some other things I tried:
Trying to import the SDK to multiple versions of Unity.
Using a different computer.
Not changing the minimum API Level to 24.
Building the app without scenes.
trying to use different Gradle versions besides 5.6.4. In particular, 6.7, 6.1.1
Creating a system variable under Path: C:\Gradle\gradle-6.7\bin
Removing 5.1.1 folder from the Temp folder of the project, whenever I compile it (Although it keeps appearing of course)
Following the guide found at:
https://developers.google.com/ar/develop/unity/quickstart-android
Ensuring JDK, JVM and all required components are installed.
All to no avail. The project is not compiling.
Any help would be greatly appreciated!
EDIT:
I believe the root of the problem is that I haven't changed the Gradle version somewhere, despite doing so at the wrapper. The reason I stuck at 5.1.1 has something to do with the default Gradle version of my Unity version.
https://docs.unity3d.com/Manual/android-gradle-overview.html
Question is, how to solve it.
I can think about two ways to solve it (but they are pretty similar):
First Option:
Download the gradle version you want, navigate to where Unity's gradle is located in:
C:/{UnityEditorsDirectory}/{UnityVersionDirectory}/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/gradle
Then replace lib folder with your new gradle lib folder.
Second Option:
In case this doesn't work, you can also try to:
Open Unity Editor, go to the menu tab Edit->Preferences->External Tools
Scroll down and find this toggle:
If you uncheck the toggle, the editor will allow you to browse where your gradle is located, paste your new directory and try if it works.
TAKE CARE: Unity's gradle version is the one that Unity's people have tested so...something can explode unexpectedly!
I was just coding in my Xamarin.Forms project, and suddenly, this error appeared:
Project is not compatible with monoandroid81(MonoAndroid,Version=v8.1). Project TaskX.iOS supports: xamarinios10 (Xamarin.iOS,Version=v1.0)
I donĀ“t really know what this means. Does anyone have a solution?
After a few days of messing around, it worked when I installed the latest version -
I had 8.1 installed but as soon as I installed "Android SDK Platform 28" (Latest) + updated all sdk's everything worked
maybe updating the sdk's was the solution but just make sure you specify a installed (updated) android version correctly
This is yet another failing of the Visual Studio error list. I am getting this error on my Android projects and a very similar one on my IOS project. Neither project uses NHibernate. I can unload my NHibernate project and both my Android and IOS project still build. Yet the error remains. I can change the error list filter to Build so I can ignore this IntelliSense error. It's not much of a solution but neither is Visual Studio's error list.
I fixed this issue removing an android reference on my iOS project.
Expand reference on your iOS project and look for and .Droid and remove it
I am not using Eclipse. I am currently using Android Studio 1.0.2. I am attempting to complete the creating watch faces tutorial however I am not able to compile due to
import android.support.wearable.companion.WatchFaceCompanion; not importing.
I've searched here, and the other questions are for those using Eclipse. I've added all of the sdk build tools. This didn't work. I modified the gradle build items in wear/app and that didn't work.
Edit: I dug into the issue a bit more via the example and I noticed the import is referenced here:
G:[my_windows_username]\Android\WatchFace\Wearable\build\intermediates\exploded-aar\com.google.android.support\wearable\1.1.0\classes.jar!\android\support\wearable\companion\WatchFaceCompanion.class
Why isn't this in my new project by default when I attempt to import?
This is more than likely an issue where you have not added the line:
compile "com.google.android.support:wearable:1.1.+"
to your build.gradle for your APPLICATION module. This should fix your issue
I had the same problem with in my watch face application. I solved by installing/updating the Android Wear 2.0.1 version from SDK Manager in Android Studio.
I suggest, check out in build.grandle if there is an error on android.support.wearable.2.0.0 compilation. Then try to install newest SDK tools (wear 2.0.1) and lib (25.0.2)
I have follow Scott Barta solution to import Facebook SDK on the new version of Android Studio (here) but now i'm having trouble using this sdk.
When I import import com.facebook.android.Facebook;I can't run my apps, it keeps reporting error: package com.facebook.android does not exist and all my methods that refer to facebook are "deprecated".
Does anyone know where this could come?
I have been facing similar issues with the latest Facebook SDK update, if you're using Gradle, I'll strongly recommend you, to first try to do a Gradle Sync as you can see here:
https://stackoverflow.com/a/19932896/799162
If that doesn't work ( as my case) you can force gradle to download your dependencies as shown here:
https://stackoverflow.com/a/13567793/799162
as an extra thing to do, try to do a clean on your build.
I updated the SDK Tools to R22 and the ADT Plugin as well. Everything worked well before the update but since then, I have problems.
Basically I have 2 library projects and an app project. One of my library projects contains some jar files in the "libs" folder. One of these jars is used in the app project itself for some initial setup. Before the update, everything worked fine, but now it asks me to add the jar to the build path and even if I do so, when running the app it still gives me ClassNotFoundException.
Did anyone had some similar experience or has any idea about what causes this and how can it be fixed?
Thanks.
Check this Android Sdk tools Revision 22 issue?. "I found that I needed to check all of the boxes in the order/export tab of the Java Build Path for the project - and each library -- to properly compile and run the app on a device." - should helps.
The workaround here worked for me
OK. I also had a Simillar kind of Problem.
Like say If you have library project as google-play-services_lib before updating than might happen that your library code has been also updated after updating your SDK.
You Should Remove that library project from your Workspace and Import
again from the source
folder like in my case i had to import from /android-sdk-linux/extras/google/google_play_services/libproject/google-play-services_lib. Add reference of
your library path to you android app project. clean and build your Project.
Hope this Helps.
you should try to upgrade eclipse.
1) Get the new imports via the Android SDK Manager
2) Check for updates in the Eclipse repository: help/check for updates
That would "for real" upgrade the SDK version in your configs.
Dunno if the other steps pointed by VShcryabets are needed, i had them before.