There are fatal errors that need to be fixed first

I have an ADT Eclipse project and I just want to import this project into android studio.

But I got this error. There are fatal errors that need to be fixed first.

This is screenshot of Error

+8
android android-studio
source share
4 answers

The error says that your project depends on google_Play_Service_Lib, and the android studio cannot find this dependency, but what Android studio did gives you a path where you can paste this library, and then you can import this 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 this in

E: \ Android \ CFPEvents \ CFP Android User

import again now.

+10
source share

find project.properties

open it

remove (no package) android.library.reference.1 = .. / android-support-v7-appcompat later you need to download the package.

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

+4
source share

The above answers are correct, but it seems that this is only the first step towards solving this problem, because I ran into the same problem.

So what can be done?

First step

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

Second step

  • Close the project

  • Back up your project

  • Delete the .idea folder in the project root directory

  • Delete all .iml files in your project

  • Import the project into Android Studio and in the dialog box that you are prompted for the file, select the build.gradle file.

After that, you should be fine.

+2
source share

You need to add

google_play_service_lib in the folder E:\android\CFPEvents\cfp-android-user and re-import the project. 
+1
source share

All Articles