Doubt with component switching in eclipse migration for android studio

0

I have an application that has been migrated from eclipse, it uses a component: link , but it generates error in opening the application, this way I had to comment the code that is below so that it was possible to compile the project, I need to do this component replacement so that the menu options are displayed, basically it mounts the application menu, there are only 3 screens of aap:

O código comentado foi este: //alterado //ActionBar actionBar = getSupportActionBar(); //actionBar.setTitle(" Sistema "); //getSupportActionBar().setSubtitle(" TESTE"); //getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#1985CB")));
Error:Could not find com.android.support:appcompat-v7:22.2.1.
Searched in the following locations:
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.pom
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.jar
    https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.pom
    https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.jar
Required by:
    :SafariProjetoPanda:unspecified

Please install the Android Support Repository from the Android SDK Manager.
<a href="openAndroidSdkManager">Open Android SDK Manager</a>
    
asked by anonymous 14.07.2016 / 16:05

1 answer

0

From your build.gradle file inside the app directory, see if you have these infos in the dependencies:

compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:support-v4:22.2.1'

But anyway, it's good that you post the error that is being presented in LogCat, otherwise the error chance gets too long.

Hugs.

    
14.07.2016 / 16:20