Search code examples
javaandroidbuild.gradlelibraries

AIDE: marven libraries can't be downloaded


I'm trying to import android support v7 app library

I succeeded compiling in the build.gradle =>

gradle

But the (support) and (AppCompatActivity) are still undefined in MainActivity.java

MainActivity.java When I open properties of project I dont find any library. libraries list And any modify I do to the parents in style.xml gives me Error!! I wish you help me


Solution

  • Try to do this on your build.gradle module app.

    dependencies {
    compile 'com.android.support:gridlayout-v7:19.0.0'
    compile 'com.android.support:appcompat-v7:+'
    }
    

    Also try to restart android studio by "Invalidate Cache and restart"