I searched extensively but cannot not find the maven repository for org.apache.cordova.
I want to edit an existing plugin (from github) in android studio.
I have tried adding the dependency by jar file. But generating the jar fails when "ant jar" with complex errors (cannot find symbols, pointing at the imports).
Thanks for help
Greetings
Felix
Try adding to you local repository.
Look ath this thread:
I am attempting to add phonegap to my local maven repository for an android application, I'm looking for help on the steps I took
Related
Hello everyone I have added a jar library in my android project. It is a maven project which references another library in its pom.xml. Although the library works fine when tested in eclipse, it does not work in android studio, and gives a class not found exception. The class not found is a class in the library referenced in the pom of the jar library. Any ideas why this is happening? Thanks.
In Eclipse, the other library defined in pom.xml may have been cached already so the library can be accessed from cache. If possible, add the .jar of the other library to you project as well.
But if you use gradle as your build system, it would be best if you can include the repo of the library you need instead of using it's .jar. If it is available in Maven most probably it is available for Gradle as well. You can search your library from the Maven central and find the gradle info at left bottom of the library's page.
My problem is adding a library to my project in Android Studio. In module dependencies I'm gettin this weird thing. Any help will be appreciated.
Here is the pic:
android libraries are usually come as links to sources not as jars or some other type.
Take a look at the image. Do you see that there are actually 2 build.gradle files? what you need is the (Module:app) gradle build file select that and paste the link in the dependencies part in the bottom of that file just like what i have done , then Android Studio will ask you to sync the file. Do it. It will download the dependency from your link provided and integrate with the project
Hope this helps..
I'm a little newbie on Android programming and the Eclipse IDE.
And I'm having some difficulties to import this lib/project (how do I call it?) into my currently project.
The link to the GitHub repo:
https://github.com/timroes/EnhancedListView/wiki
There the author wrote a "How to include", but I tried the last one (by my one), since I use Eclipse.
"How to include
You need to include the library into your project, by one of the
following ways:
Include it from Maven Central (recommended)
Just enter the following line to your build.gradle file in the dependencies section:
compile 'de.timroes.android:EnhancedListView:X.Z.Y#aar'
Where X.Y.Z is a valid release. You can find all releases on the release page or directly in Maven Central.
If you use Maven to build, just use the above coordinates in your pom.xml.
Download the aar file from the release page and reference it in the dependencies section of your build.gradle:
compile files('libs/EnhancedListView-X.Y.Z.aar')
If you are using Eclipse or Ant, you are on your own. You most likely want to download the sources and import them in your build system."
I tried to include it to the build path, but didn't work. Nothing found on internet. Do I have to include something besides adding project into build path? Do I import it like a lib or project?
Do any of the others options to include would work for me? How do I do it?
Thank you very much!
There is no one click method for Eclipse users. You have to copy the EnhancedListView.java into one of your src packages, the content of the resource directories into your project's resource directories and the annotations.jar from the libs directory to your libs directory.
I'am new to Maven, Gradle, Ant and etc.
I'm tying out the ActionBar-PullToRefresh. It uses Gradle, so I open sample/stock/build.gradle with my Android Studio but it is saying signing.properties is missing.
Anyone know how to fix this?
The issue is that samples/actionbarcompat/build.gradle defines props.load(new FileInputStream(file('signing.properties'))) and .gitignore ignores the authors copy of the file in the git repo.
You might want to follow these instructions to create your own signing.properties file. or open in issue with the author to include an example in his README.md
I was looking for an ePub reader in android.I referred PageTurner. Got it's apk downloaded and it worked.
But when I downloaded it's source code from github
(as it's open source) and tried to Import the project, it gives the message that No Projects found to import even though it's pointing to the correct location.
I searched for similar questions on SO, but didn't got any help.
I guess I'm missing out libraries and some other stuff that will make this work. Note that bin and gen folders are missing at github link.I'm using Eclipse Indigo as IDE.
Any idea what's wrong here? Any help appreciated.
EDIT
1.) From suggestions, I created new project and imported it from existing source but it's giving errors at virtually every line of code.
Some of the errors are like :
Package x1 does not match with package x2
class RoboActivity not found
method not found
#Inject cannot be resolved to a type
2.) What exactly do I download from Maven site?
Which libraries are required from these.
Moreover, When I tried to install the plugin from instructions, I got
3.) this link is available for Maven Plugin but I can't find the plugin here :(
Your project is maven project. Download maven plugins for eclipse then import existing project as Existing Maven Projects. Dependencies of other jar will automatically resolved if your pom.xml file is correct.
Maven Eclipse Plugin
Maven 2 Eclipse Plug-in
instead of importing try
create new project using existing source
Hope this helps
Big update: I hadn't realized that the new ADT likes Maven even less than the old one.
Let me chime in here as the author of PageTurner: personally I don't use the Eclipse Maven plugin, but I simply generate an Eclipse project with mvn eclipse:eclipse.
If you have never worked with Maven, it's a command-line build tool similar to Ant (or Unix make). You can download Maven 3 here:
http://maven.apache.org/download.html
Once you have Maven installed, the steps to import PageTurner into your Eclipse environment are:
Download and unpack the sources
Run
mvn -Djavax.net.ssl.trustStore=trust.jks -Djavax.net.ssl.trustStorePassword=pageturner -DexcludeTransitive=true dependency:copy-dependencies
inside the source folder
Create a libs folder
Copy everything in target/dependency to the libs folder
In Eclipse, select "New Android Project" -> "From existing source" and point it to the folder you unpacked PageTurner in.
Essentially this completely leaves Maven out of the game, except to get the dependencies.
if bin and gen folders are missing no matter you can also create your own project and just copy the res,src and manifeast files from that source to your project. then just refresh your project then clean it an build it will work.
This is maven based android project. So you need to download all the dependencies first, then import the project.
Read this carefully.