我无法在Android Studio中导出APK文件

时间:2018-07-30 08:09:39

标签: android android-studio

Could not find com.android.tools.lint:lint-gradle:26.1.3.
Searched in the following locations:
    file:/C:/Users/Ali/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.pom
    file:/C:/Users/Ali/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.jar
    file:/C:/Users/Ali/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.pom
    file:/C:/Users/Ali/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.jar
    file:/C:/Users/Ali/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.pom
    file:/C:/Users/Ali/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.jar
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.pom
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.jar
    https://jitpack.io/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.pom
    https://jitpack.io/com/android/tools/lint/lint-gradle/26.1.3/lint-gradle-26.1.3.jar
Required by:
    project :app

2 个答案:

答案 0 :(得分:1)

确保项目的build.gradle文件中包含以下内容。

userLogin(payload, pathName)

答案 1 :(得分:0)

在我看来,您似乎缺少google()存储库以获取依赖项。

以下是您要查找的pom文件的链接:https://dl.google.com/dl/android/maven2/com/android/tools/testutils/26.1.0-alpha01/testutils-26.1.0-alpha01.pom

源:https://stackoverflow.com/a/47127602/10153377