Unable to import MoPub android sdk - android

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?

Related

cannot find symbol class DiskInfo and some other packages despite being present in SDK folder

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.

Can not resolve symbol error in import statements in Android Studio Project

android studio code screeshot
Some Android imports are showing...Cant resolve symbol. even though those classes are available in SDK/Sources/...|(Red color code in picture)
Did you setup support library?
I think this is similar question.
You must setup support library same version of your project SDK version.
(ex. Android SDK version is 22, you must import com.android.support:appcompat-v7:22.+)

How to use IntegralToString

I am working on a android App and am trying to use IntegralToString, android studio always prompt "Cannot resolve symbol IntegralToString".
I find source here
but I cannot import com.android.tools.layoutlib.java package in my Java code, can anyone help?
Thanks
I am working on a android App and am trying to use IntegralToString, android studio always prompt "Cannot resolve symbol IntegralToString".
That is because there is no class in the Android SDK named IntegralToString, at least at this time.
I find source here
That is source code for some of the development tools.
can anyone help?
Copy the Java code into your own project, adhering to the license terms.

Import Project from ADT (eclipse Android)

When i try to import an existing project in android studio for development, I get the following error.
* Project NiuDrawingKit:D:\Android\Projects...ProjectName...\NiuDrawingKit\project.properties:
Library reference ....\Desktop\HoloColorPicker-master could not be found
Path is D:\Android\Projects...ProjectName...\NiuDrawingKit....\Desktop\HoloColorPicker-master which resolves to D:\Android\Projects...ProjectName...\Desktop\HoloColorPicker-master*
This project was developed long ago in eclipse. I also find that the particular lib "NiuDrawingKit" cant be found by android studio.
any support to resolve this issue?
Other than this lib, project also uses JakeWharton-ViewPagerIndicator and google-play-sevrvices_lib..which is found to be no issues.

Facebook SDK in Android Studios not working?

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)

Categories

Resources