英文:
AIDE: marven libraries can't be downloaded
问题
我正在尝试导入 Android Support V7 App 库。
我已经成功在 build.gradle 中编译:
但在 MainActivity.java 中,(support) 和 (AppCompatActivity) 仍然未定义:
当我打开项目属性时,我找不到任何库:
并且我对 style.xml 中的父项进行的任何修改都会导致错误!
希望你能帮助我。
英文:
I'm trying to import android support v7 app library
I succeeded compiling in the build.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
答案1
得分: 0
尝试在你的 build.gradle 模块应用中进行以下操作。
dependencies {
compile 'com.android.support:gridlayout-v7:19.0.0'
compile 'com.android.support:appcompat-v7:+'
}
同时尝试通过 "Invalidate Cache and Restart" 重启 Android Studio。
英文:
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"
专注分享java语言的经验与见解,让所有开发者获益!
评论