Import eclipse project to Android studio - error “this project refers to Eclipse workspace…”

后端 未结 8 1000
梦如初夏
梦如初夏 2021-02-07 00:19

I tried to import an existing project eclipse to Android Studio, but I got a dialog message in import that I can\'t solve : \"this project refers to Eclipse workspace re

相关标签:
8条回答
  • 2021-02-07 00:43

    For others who have the same problem,

    Just remove .classpath file and then import the project again.

    Hope this helps.

    0 讨论(0)
  • 2021-02-07 00:47

    Try to export project from eclipse or add module from android studio. May be its takes your old dir paths. May be it helps you.

    0 讨论(0)
  • 2021-02-07 00:49

    first you go to the place where your eclipse project is kept and delete the .classpath file. then open your eclipse file with your android studio go to file-import project-Next-Next_finish

    0 讨论(0)
  • 2021-02-07 00:59

    First of all please make sure that you have done all steps in proper manner as provided here, the migration guide for projects in Eclipse/ADT

    As you can see from migration guide the Migration Prerequisites

    carefully see In Eclipse ADT section there they have already told this.

    It may be useful to record your workspace directory, path variables, and any actual path maps that could be used to specify any unresolved relative paths, path variables, and linked resource references. Android Studio allows you to manually specify any unresolved paths during the import process

    This answer have some best explaination of steps and the same question have other answers with pretty good picture representation.

    since i have seen this same problem you have in this specific answer the guy mentioned same problem and he tried again and successfully imported project. So you can Configure your build as @AR.3 mentioned in his answer. But i still want you to check that you have followed all steps perfectly because in most cases it shouldn't happen. You can try to browse your specific prject from your eclipse workspace and see whats happen.

    0 讨论(0)
  • 2021-02-07 01:01

    Simply delete all the folders and files from your project except manifest res,src and then import it in Android studio using Import from eclipse

    0 讨论(0)
  • 2021-02-07 01:05

    There is another way.You can create new project in android studio and add all the files like java files in java folder and replace res files.If there is any library ,import those library as well.Now you are ready to work in android studio.

    I have tried this when the same error occurs to me.

    0 讨论(0)
提交回复
热议问题