There are unrecoverable errors which must be corrected first

前端 未结 4 827
名媛妹妹
名媛妹妹 2021-01-05 10:37

I have ADT Eclipse Project and I want to just import that project in android studio.

But I got this error There are unrecoverable errors which must be corrected firs

相关标签:
4条回答
  • 2021-01-05 10:55

    The error is saying that your project depends on google_Play_Service_Lib and android studio is not able to find that dependency, but what android studio did is giving you the path where you can paste that library and then you will able to import that project.

    first download google_service_lib from

    https://github.com/aporter/coursera-android/tree/master/Examples/google-play-services_lib

    or

    https://github.com/MobileChromeApps/google-play-services

    and now paste that in

    E:\android\CFPEvents\cfp-android-user

    now again import..

    0 讨论(0)
  • 2021-01-05 10:59

    Above answers are right but it seems it is only the First Step on the way to solving this issue because I had faced the same issue.

    So what can be done?

    First Step

    • First download google_service_libary not only jar and now paste that in E:\android\CFPEvents\cfp-android-user(path of your project folder).

    Second Step

    • Close your project

    • Back up your project

    • Delete the .idea folder in the root directory of the project

    • Delete all the .iml files in your project

    • Import your project in Android Studio, and in the dialog that prompts you for a file, choose the build.gradle file.

    After this you should be good to go.

    0 讨论(0)
  • 2021-01-05 11:10

    find project.properties

    open it,

    delete(No package)android.library.reference.1=../android-support-v7-appcompat later,you need download the package.

    link http://blog.csdn.net/wu_wxc/article/details/47091795

    0 讨论(0)
  • 2021-01-05 11:13

    You need to add the

     google_play_service_lib 
     in the folder
     E:\android\CFPEvents\cfp-android-user 
     and re-import the project.
    
    0 讨论(0)
提交回复
热议问题