Trying to import Facebook SDK into Android Studios, getting the following error:
Error:(8, 0) Could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':FriendPickerSample'.
I tried importing the modules as follows: File > Import Module > Facebook unzipped path.
I'm new to Android Studios and it's my first time trying to import any SDK, and I don't even know what
'FriendPickerSample' is (I've tried searching around internet!).
Can someone please help me? What am I doing wrong, how can I solve this error?
UPDATE: I've tried adding BUILD_SDK_VERSION=20 (my sdk version is actually 20), still doesn't solve the error:
you define property ANDROID_BUILD_SDK_VERSION in you gradle.property.
ANDROID_BUILD_SDK_VERSION=(*Version)
Related
I have an activity in which i have imported android.os.storage.DiskInfo and some other packages. Android Studio gives errors when trying to make the project saying:
error: cannot find symbol class DiskInfo
When i tried to resolve this problem i found out that all packages are present in folder $SDK-HOME\sources\android-24\android\os\storage but i don't know why Studio couldn't import them properly.
Is there anybody who have experienced problems in import and have solved it?
Thanks
p.s: i am using Android API 24
That is because of #hide in android source code. Actually Android is not allowing developers to use some classes. A solution is to use modified SDK which contains hidden classes. you can find it here https://github.com/anggrayudi/android-hidden-api
Check out : TargetSdk version and support package version.
I have started learning android development using the eclipse IDE. I am using the book "Android application programming" by James Talbot & Justin McLean.
I have downloaded Eclipse and the Android SDK. However, when I create a new android project I get the error:
[2018-04-16 23:53:15 - OnYourBike-Chapter3] C:\Users\benjo\workspace\learningandroid\OnYourBike-Chapter3\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2018-04-16 23:53:15 - OnYourBike-Chapter3]
and another one but for Theme.AppCompat.Light.
I am very new to both eclipse and android SDK and the solutions I have read were mostly to go to "android-sdk\extras\android\support\v4 or v7 and import a library. I don't have these v4 or v7 folders. I have a bunch of folders like this:
Folder contents
I have tried adding the .jar libraries from these folders, but it didn't work.
I have tried cleaning, building the project, replacing the code in the style.xml file, installing the Android Support Repository (tried installing Android Support Library, but couldn't find it).
I have gone through atleast 10 threads just on stackoverflow and couldn't fix my issue. Nothing worked.
My mainActivity.java file is full of errors, and looks like this:
mainActivity
The error on the import reads: "The import android.support cannot be resolved".
Here are pictures of my Android SDK Manager :
Android SDK Manager SDK Tools
Android SDK Manager Extras
Hopefully someone can help me solve this. It is really frustrating and I have spent my whole day trying to fix this with no success.
I am using Android Studio 0.8.14, and I have included the module from https://chris.banes.me/2012/10/12/photoview-v1-1/ but it always show me
Error:(27, 29) error: package uk.co.senab.photoview does not exist
But within the program the import uk.co.senab.photoview.PhotoViewAttacher; without any error.
That's puzzled me.
I have been trying to resolve this without any success.
you should check first: Package does not exist when using separate App as a dependency
then - if this does not fix your issue you should create a dependancy of your library:
reference which helped me to solve this problem:
https://www.jetbrains.com/idea/help/configuring-module-dependencies-and-libraries.html
in this case you should add : [your-photo-library-name] dependancy for your main app in Project Structure Screen.
Hope it helps.
Im trying to import the sample SDK APIDemos app (I also tried to import another project I have in eclipse) and in both cases it says "Grade refresh build failed... peer not authenticated".
I check on the eclipse project gradle propeties file that it is http and not https and still same problem.
Any ideas?
Thanks!
UPDATE: now I am getting the same problem when trying to create a new project, please help!
I am trying to import the MoPub sdk into eclipse, but I am getting following error:
[2012-06-28 13:43:46 - mopub-android-sdk] Unable to resolve target 'android-4'
Kindly help me to resolve the issue.
Are the mopub-android-sdk files in the same parent folder as your project? This seems like the same problem addressed in this question/answer. Have you installed Android 1.6 platform on your sdk?