i'm trying to add a aar file for the first time in my project :
http://hiteshsondhi88.github.io/ffmpeg-android-java/
But i can't manage to make it work on eclipse, i tried to copy the aar file in my /libs than i do add to build path like i'm used to.
But my project can't import ffmeg. It is said in the documentation :
Or Maven
<dependency>
<groupId>com.github.hiteshsondhi88.libffmpeg</groupId>
<artifactId>FFmpegAndroid</artifactId>
<version>0.2.5</version>
</dependency>
Where do i need to put this ? or this is the case you use Maven with android studio ?
How can i import this aar?
Thank you very much
Related
I have created a project and try'n adding YouTubeAndroidPlayer jar dependency but couldn' able to resolve it.
The gradle is able to sync it but while Inherting and using it, it might not able to resolve and throwing compile time error. I am using 2.3.2 version of Android studio. Please check the attached .gradle and .java file screenshot.
and Java file :
Thanks.
Just got it worked luckily, steps:
- Firstly, Added a New Module of type Jar file, it puts an entry like this under libs folder:
Secondly, Under app directory -> inside libs folder -> need to copy same JAR file.
This resolves the issue. Since I am a newbie in android, does make it resolve somehow.
Thanks.
I checked your code, it was missing Jar file. Just copy the "YoutubeAPI" jar from their developer's website and paste it into your "libs" folder. Sync your project and it will work!
Other Solution:
Remove that last Youtube Jar import line and delete the jar file from your "libs" folder as well. Simply add this line in your dependencies block to import directly from dependency support site:
compile 'com.google.apis:google-api-services-youtube:v3-rev181-1.22.0'
It will automatically resolve all issues. For details check this link:
Add YouTube Data API to Android Studio
I am very new to Android development. I am not using gradle. I want to use the following library
Can you please let me know how to include in my project.
When I clone your project to eclipse(Mars) it is showing the following structure-
My project structure is given below.
Now shall I copy the "lib" folder (lib\src\main...) to my "src" folder?
Normally I add the library like the following way-
Just import the lib folder of the library instead of the whole library in Eclipse. And add it as a library to your project.
I'm trying to add https://github.com/astuetz/PagerSlidingTabStrip to my project. Looking at it, I notice that it has files in res and depends on its own R.java file. When I make it a JAR I continue to get errors because the dependencies aren't all there. I'm not sure how to get this to work.
I keep getting errors like
import android.support cannot be resolved and everything else too. I tried referencing different answers on StackOverflow but none of them yielded a working solution.
The resources won't be packaged into the JAR file. Google is working on a new packaging scheme called AAR which is supported by Android Studio.
In order to use this third-party library in your own project, you should clone it to a local repo. Then you can import it directly into your Eclipse workspace and then add the Eclipse project to the classpath of your app's project.
Download the whole source code from https://github.com/astuetz/PagerSlidingTabStrip by git tool.
On your Eclipse IDE, import the library as exsisting source code at Android option.
Add the library your add before into your project.
I have downloaded and am trying to import this library: https://github.com/sachin-handiekar/jInstagram in one of my projects. However, whenever I point to the directory where this project is located and try to import it, Eclipse says "No projects are found to import." I even tried importing it as Android code but it didn't recognize it either. How do I import and use this library in my Android project?
Just to use this library within your project add it as a Maven dependency
<dependency>
<groupId>com.sachinhandiekar</groupId>
<artifactId>jInstagram</artifactId>
<version>1.0.9</version>
</dependency>
If you don't know how to do this check this plugin: maven-android-plugin
You can also checkout the complete source tree for the project and then go to the directory containing the pom.xml file and using Maven run mvn install to build this project and then import it to the Eclipse.
It says no projects are found to import because it is looking for the eclipse .project file which is not included in git repositories. Try the import file system option
Or better yet, try out the git plugin for eclipse
Its easy, in Activity press Ctrl + Shift + O
I have installed eclipse ide for EE developers and I am receiving an import error for
import javax.json.Json;
import javax.json.JsonReader;
etc.
I have right clicked on project folder -> clicked properties -> clicked Java build path -> add library -> JRE System Library,
but the dependencies that show up are already imported. How can I import the javax.json package?
If using Maven, add this dependency to your pom.xml
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<version>1.0</version>
</dependency>
For Gradle, add this to your build.gradle
compile 'javax.json:javax.json-api:1.0'
Going to assume that you are not using Java 7 and thus need to add the JAR file directly to your project path:
Here's the link to the
JAR
And where it came from:
http://jsonp.java.net/
Download and add to your project build path.
You need to get a hold of the Jar from https://java.net/projects/jsonp/
Then got to project folder -> clicked properties -> clicked Java build path -> Add External Jars...
From here you can import the downloaded Jar (library) into your project.
Using javax.json group (what is in the accepted version) doesn't work for me. I get this:
javax.json.JsonException: Provider org.glassfish.json.JsonProviderImpl not found
Instead, what does work for me is the following (put this in the dependencies section of build.gradle if you're using Gradle):
implementation "org.glassfish:javax.json:1.1.4"
To find the latest version of the library, see the library's search.maven.org page.
You will have to download the Jar from https://java.net/projects/jsonp/ as they are not yet part of main Java runtime, download the jar and add it to your classpath and it should work
JSR http://jcp.org/en/jsr/detail?id=353