No projects found to import

2019-07-21 15:26发布

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 this

3.) this link is available for Maven Plugin but I can't find the plugin here :(

5条回答
Anthone
2楼-- · 2019-07-21 15:58

instead of importing try

create new project using existing source

Hope this helps

查看更多
Root(大扎)
3楼-- · 2019-07-21 15:58

This is maven based android project. So you need to download all the dependencies first, then import the project.

Read this carefully.

查看更多
Ridiculous、
4楼-- · 2019-07-21 16:03

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

查看更多
倾城 Initia
5楼-- · 2019-07-21 16:18

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.

查看更多
The star\"
6楼-- · 2019-07-21 16:19

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:

  1. Download and unpack the sources
  2. Run

    mvn -Djavax.net.ssl.trustStore=trust.jks -Djavax.net.ssl.trustStorePassword=pageturner -DexcludeTransitive=true dependency:copy-dependencies

    inside the source folder

  3. Create a libs folder

  4. Copy everything in target/dependency to the libs folder
  5. 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.

查看更多
登录 后发表回答