我正在尝试运行从git中找到的应用程序
所以我尝试在我的android studio中克隆它
但问题是这很奇怪,因为当我自己制作应用程序时
build.gradel有两个,第一个项目,第二个模块:app
但这只是
这就是我想要克隆并想要跑步的东西 https://github.com/mdy0501/Airbnb
但是它不起作用 当我按下运行按钮 它显示
[当我按下“运行”按钮时] [1]
我该怎么办? 如果我想在我的android studio中运行该应用程序
这是向我显示的控制台
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not find com.android.support:appcompat-v7:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
Required by:
project :app
project :app > com.android.support:design:25.3.1
> Could not find com.android.support:cardview-v7:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/cardview-v7/27.0.2/cardview-v7-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/cardview-v7/27.0.2/cardview-v7-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/cardview-v7/27.0.2/cardview-v7-27.0.2.jar
Required by:
project :app
> Could not find com.android.support:support-v4:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar
Required by:
project :app
project :app > com.android.support:design:25.3.1
project :app > com.android.support:design:25.3.1 > com.android.support:transition:25.3.1
> Could not find com.android.support:support-annotations:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
Required by:
project :app > com.android.support:recyclerview-v7:25.3.1
project :app > com.android.support:recyclerview-v7:25.3.1 > com.android.support:support-compat:25.3.1
project :app > com.android.support:recyclerview-v7:25.3.1 > com.android.support:support-core-ui:25.3.1
project :app > com.github.bumptech.glide:glide:4.0.0 > com.github.bumptech.glide:gifdecoder:4.0.0
project :app > com.android.support:design:25.3.1 > com.android.support:transition:25.3.1
> Could not find com.android.support:appcompat-v7:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
Required by:
project :app > jp.wasabeef:recyclerview-animators:2.2.3
> Could not find com.android.support:support-annotations:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
Required by:
project :app > com.baoyz.pullrefreshlayout:library:1.2.0
> Could not find com.android.support:support-v4:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar
Required by:
project :app > com.baoyz.pullrefreshlayout:library:1.2.0
> Could not find com.android.support:appcompat-v7:27.0.2.
Searched in the following locations:
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.pom
file:/C:/Users/bon300-36/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
file:/C:/Users/bon300-36/AndroidStudioProjects/Airbnb/Airbnb/sdk-manager/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
Required by:
project :app > com.tsengvn:typekit:1.0.1
[1]: https://i.stack.imgur.com/9wGfC.png
答案 0 :(得分:0)
当更新中存在错误时,可能会发生这种情况。要修复此问题,请打开android sdk manager
,然后:
再次安装android支持存储库
删除依赖项,然后重新构建应用程序。尝试清洁并重建。