AIDE: 无法下载 marven 库

huangapple go评论72阅读模式
英文:

AIDE: marven libraries can't be downloaded

问题

我正在尝试导入 Android Support V7 App 库。

我已经成功在 build.gradle 中编译:

gradle

但在 MainActivity.java 中,(support) 和 (AppCompatActivity) 仍然未定义:

MainActivity.java

当我打开项目属性时,我找不到任何库:

libraries list

并且我对 style.xml 中的父项进行的任何修改都会导致错误!

希望你能帮助我。

英文:

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

答案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"

huangapple
  • 本文由 发表于 2020年4月4日 20:21:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/61027990.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定