how to use JakeWharton-Android-ViewPagerIndicator in intellij? - android

Hi there I am just newer in android development and I am trying to build my first app and I do will until now.
but I need to use ViewPagerIndicator so I do my search and I've found JakeWharton-Android-ViewPagerIndicator also I am using inellij IDE
but the problem that when I want to add this library into my project I can't find the jar file and I don't know if the error from my side or what please any help.
regards

You will need to create a new module with the library sources and add it as a dependency to your main module. This answer has detailed steps you can follow. Just replace the library used with ViewPagerIndicator.

Related

how to add Material-Animations library to my project in android studio

i want to add Material-Animations library to my android studio project,i don't know how to add it to my project,there is not any aar file or gradle command in it's document
aren't libraries like this usable for other developers?
sorry if my question is too basic
thanks in advance
Edit:
solved,this is not a library!
It looks like you don't need to add it. It uses android native libraries, so it's more like a tutorial, you can use the code without adding anything.

Need to embed one android project into another android project

I have two android projects with me. I need to add the first project as a library to the other project.
Now, when I am trying to open the activity of library project from the other application on a button click, i am getting Android.content.ActivityNotFoundException at run time.
Can anyone suggest some pointer on this.
you need to check that you added the new activity to the manifest.xml file
if you are Using ADT(Android Developer Tool).
Thanks for the concern. This issue is resolved for me. Sorry for the late reply. I have created the second application as library project, which is included in first android project.
The point, which fixed the issue is: add the contents of the manifest.xml of library project in main project and the reference provided is the full path for the activity(including package name).

Android Studio: dx.bat failed

I am using Android Studio for building an application, in which I am using Facebook-SDK and Actionbar Sherlock as a dependencies. Each project library contains android-support-v4.jar.
When I am trying with any one of the project library it is working well. But I'm facing problems when trying to implement both simultaneously.
I know that I am facing the problem due to android-support-v4.jar.
I want to know how to add android-support-v4.jar in an efficient way.
\Android\android-studio\sdk\build-tools\android-4.2.2\dx.bat failed
I just solved the similar problem. On my case and most probably on your case also, the problem is on adding android-support-v4.jar for multiple times. I then remove the dependencies of android-support-v4.jar from my project's build.gradle and just have a single dependencies on facebook build.gradle, as facebook sdk was first to build on my project.
I faced this problem yesterday. I got it to work by making sure that there is the same android-support-v4.jar file in all libs directories throughout the project. The facebook-sdk and ABS ship with versions that might not be current when compared to the one that is installed by default by Android Studio. Let me know if it works.
If you need help integrating libraries in Android Studio, I recommend looking at facebook-sdk's step by step tutorial. I am sure once you integrate facebook-sdk you can use those steps to add any other library that you need by making small changes (i.e. use the name of the library you are trying to add instead of facebooksdk on the settings.gradle and build.gradle)

Can not include source library in project in Intellij IDEA

I've created library project in IDEA with common helpers, which I use in my android applications.
Then I've created android application and included in it my library project like this tutorial said.
Everything seemed okay, code autocomplete worked fine, IDEA recognize that library and all classes and methods in it.
But then I compiled application and saw error "'org.my.helperlibrary' does not exist". However as I said IDEA acts like everything okay before making/launching project.
Here is similar question, but answer is trivial, of course my library has checked "Is Library Project" option but I still can not launch my application which use my library.
Updated:
I've just saw an error: "UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/my/helperlibrary/Helper;" when I removed all usages of library in my android application. So it's just included in my app and not used.
It turned out that I should not add dependency manually in that window
I rather should add new module in my Project window at the left
Then I should choose iml file in the root folder of android library project I want to use
Then I pressed finish and from that point I had two modules in my project
After that when using classes I can press Alt+Enter on any class from SampleLibrary and tell IDEA to add module dependency
Then I could see that IDEA made all I need without me. I can now use SampleLibrary from SampleApplication!
Try to select library project, then click Build -> Compile <your library project name>.
Then back to you project which use this library and click Build -> Rebuild Project.
After that try to run project again.
Hope it helps.

Action Bar for android < 3.0

I want use ActionBar for my application but i found it can't use for android < 3.0.
I found this https://github.com/johannilsson/android-actionbar to solved my problem but I get error at
import com.markupartist.android.widget.ActionBar;
import com.markupartist.android.widget.ActionBar.Action;
import com.markupartist.android.widget.ActionBar.IntentAction;
Give ActionBarSherlock a try. I use it for one of my projects and after some reading of the docs and the samples it just worked. The samples are easy and straight forward, you should be able to extract what you need from them.
To see what it's able of just download the sample app from the market: Sample App (requires at least Android 1.6)
You should add the code to a library, and add the library to your project.
To do this in Eclipse create a new project, using the same package name as the github project (so com.markupartist.android.widget). In the properties select the project to be a library under the Java Build Path tab. Then, in your project, go to its properties, and select the library.
I think your including files are missing (JAR libs) , Click on error icon and then select fix project setup.
I spent around 10 hours trying to fix this problem. All the above ans does not work. Actually what is missing is android support library. To fix this, right click on project, >Android Tool> Add Support Library. Hope this save alot of time for other who came across this. just add support library both on your ActionBar library and the current project.

Categories

Resources