I quite a newbie in android.
I use Eclipse Photon (4.8.0.I20180611-0500) with following plugins :
- Android Development Tools (23.0.7.2120684)
- Android for Maven Eclipse (1.4.0)
I cloned https://github.com/simpligility/android-maven-plugin.
Then I use eclipse to open example android projects, such as libraryprojects project and its subproject.
libraryprojects is a set of simple maven project for android. It just show how to create and use libraries with android-maven-plugin.
When I build libraryprojects from command line, everything work (excepts test project) :
cd libraryprojects
mvn clean install
However, in eclipse, there are some problems, or I am having difficulties making code working well :
- first, we have to create a default.properties or project.properties file at each android project root to be able to add "android project nature".
- second, and I'm stuck on this : "cannot be resolved to a type" eclipse errors for all projects which have AAR type dependencies.
- thirst, we have to make symbolic link for AndroidManifest.xml and res folder to get them accessible from each android project root folder.
I tried to understand how to solve it, read some article and forums on google like this one : How to import Android AAR dependencies using Maven in Eclipse?
However, this article is old and the proposed solutions are workarounds. And they are old, so I'd like to know :
- if I make some mistakes
- if eclipse will not work with aar libs
- if I'd better use Android Studio (or Intellij) for android projects ...
I also see this interesting post to convert gradle project to eclipse or idea projects : How to use Gradle to generate Eclipse and Intellij project files for Android projects, but I really don't know if I must continue with it, or if another method is easiest.
Can some one help me dealing with this ?
Notice : when using other android projects built with gradle, the problems stay the same : unresolved symbol when using classes from AAR.
For example, when I try to use these AAR dependencies, gradle build is ok but Eclipse tells me that used classes of this jars cannot be resolved. - com.github.sahasbhop:formatted-log:0.0.5' - com.nostra13.universalimageloader:universal-image-loader:1.9.4