Does anyone know where you can get the droid fu jar from? I have no idea how to install it from github
Read the Droid-Fu documentation, specifically the "How do I install it?" section, which explains, step by step, precisely how to build a JAR for your use.
If you do not understand those instructions, please contact the developer, or simply do not use the library.
Also, please do not ask duplicate questions.
Is this library? Can you download it? If you can download it, Right click on the project -> Build Path -> Configure Build Path -> Select the Libraries Tab -> Add external JAR -> Browse you jar and add it. Now import the library.
Not sure why its at java2s but http://www.java2s.com/Code/Jar/d/Downloaddroidfu10jar.htm appears to be the correct jar. I've used it just to see if it works and it does.
For some general explanation regarding Droid-Fu: see this post
Also, look at ignition now, as Droid-Fu is discontinued.
Related
The problem
Under "External Libraries" in the project view of an Android Studio project I have these libraries "stax-stax-api:1.0.1#jar" and "xpp3:xpp3:1.1.3.3#jar". They're causing me problems such that I can't build the project. I can't seem to figure out how they got there or where they're being used.
The error message I get when I build right now is:
"Error:Error: xpp3 defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]"
The error message is good except that it doesn't tell me who's using this lib in the first place.
The question
Is there an easy way to find out where they're being used in the project? Or even a way that it's easy but doesn't require looking at every file? It's a multi module project with lots of files. If I could delete them this would tell me but there's no delete option.
This could be something really simple that I'm overlooking. Any help appreciated. Happy to add more info as requested.
What I've tried
I've tried to "Analyze Dependencies" but it doesn't show me any references that I can see.
Update: I forgot to mention that I've also tried ./gradlew app:dependencies but it only tells me that my project depends on these libraries. I already know this. Is there a way to get some more specific information so I can remove the libraries?
Update 2: The accepted answer does work but I needed to redirect console output.
gradle app:dependencies
It will show you the dependencies tree of your project
At this link it is explained quite well about the command and how to use it.
Use this to redirect console output if it's clipped:
./gradlew app:dependencies > dependencies.txt
Project can be explored in "Project-tool-window" to have a look at the used external libraries which are not visible in "Android tool Window".
https://www.jetbrains.com/help/idea/project-tool-window.html
That way I solve my problem. Hope it help.
I have downloaded OpenCV-2.4.8-android-sdk and android-ndk-r9c. I followed a tutorial by Stanford university, which tells me to import all sample projects from the OpenCV SDK directory and then everything will work magically.
Obviously, that is not the case. Below is a screenshot of one of the sample projects (and its build path) that I imported to Eclipse:
Do you know of a valid and recent tutorial to make the OpenCV samples running?
I checked the tutorial on OpenCV website but it does not describe how to get the samples running. In particular, I am confused about these:
2) I can see that I am missing all android.* and org.opencv.android.* imports. Do I need to manually include these to the build paths of the projects?
3) Where does the Android NDK go in this process?
4) There is no ./jni/Andorid.mk file in any of the projects. Do I have to manually add these?
Right click each sample project folder > Properties > Select Android from the left list of options:
1) Check if you have something for "Project Build target" (example: "Android 4.4.2").
2) Check if you have something in the "library" box and if it does not have a red X next to its path. If it has a red X, edit to select the correct path to where you placed the opencv library.
Also do step (1) for the Opencv Library project, if you imported it to your workspace like it is described in the installation tutorial.
The steps explained in the Android Development with OpenCV article helped me solve the problem:
Do take caution in using outdated tutorials on the web. In my case, the Stanford university tutorial was outdated and was therefore misleading.
Look for documents dated 2012-2013 when you are dealing with OpenCV.
You should follow these steps:
Right click on the example marked with errors ->
Select android from the list ->
on Project Build Target hit the checkbox ->
then apply.
After that the error for the specific example should be gone.
Try project->clean->clean all.
Hello I am trying to learn a little bit of facebook-sdk for android but no luck.
I will post some screenshots so you easy understand what is my problem.
1st step I am adding the SDk to my project
2nd step I import Classes but i get an error
And when I am going back to android tab I see this
Really need help. I tried Many times to follow the steps from FB Guide in case I forgot something but didnt helped... Thank you in Advanced.(I am new to this hope you will understand)
Your "Jar mismatch" problem comes into picture because of the Facebook SDK itself has android support v4 jar as well as your project also same jar file.
To solve this problem..
Go to your project's properties -> Java Build Path -> Order and Export :
Now remove the Tick-Mark from Android Private Libraries.
make sure that you had already used facebook SDK's private library (tick-marked)
And then after clean your work space..
It will always help me..
Hope this will help you to solve your problem.
I'm writing a program which must download documents from google docs. I have downloaded this example , but its haven't attached jar files. So I havent found any jar, which contains com.google.api.services.docs.DocsClient class. Could anybody tell me the jar , which contains this class.
Thank you .
Your DocsClient class is here. Check if it's the correct one.
I have found the answer. The solution is that you need to install maven plugin for Eclipse IDE , and it will download all dependency libraries.
Here you can find the instructions for installing Maven plugin , and this is instructions for downloading libraries.
Thank you.
When I start a new android project and use native android methods and components and java methods and components, I can't read their description because javadoc send me this message:
Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc.
I have the latest android documentation in my android-sdk folder and javadoc works when I work with standard java projects, but not with android project. Have you got any ideas why does it happen and how can I fix this issue?
I found solution myself. In this situation you need to correct a path of your javadoc at Project->Properties->Java Build path->AndroidX.X(where X.X is platform version)->android.jar->Javadoc location.
It should be pointed at your docs\reference location
If you are using Eclipse (you should mention the IDE) you should get a button to "attach source" when you get that message. Just click that button and point it to the docs directory on your computer or on the internet and you should be good to go.
Kindly check the following url & try to implement the instructions provided
http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/