android - Gradle Build因Android Studio异常而失败

标签 android android-studio gradle build.gradle

嗨,我在生成apk时遇到问题,并给出此错误

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
   > Could not find ir.tapsell.plus:tapsell-plus-sdk-android:1.1.1.
     Required by:
         project :app

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s

我现在应该怎么解决这个问题?请指导我

最佳答案

sample app解释说TapsellPlus SDK是从第三方存储库下载的,您需要在根build.gradle中指定。

allprojects {  
    repositories {  
        google()  
        jcenter()  

        maven { // THIS
            url 'https://dl.bintray.com/tapsellorg/maven'  
        }
    }  
}

关于android - Gradle Build因Android Studio异常而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60750749/

相关文章:

android - react 原生无法构建Android APK。 gradlew clean和…命令失败

android - fragment A 的 findFragmentByTag 为 null,如果 fragment B 上有 setRetain(true)

android - 查找和替换 Android Studio

Android gradle apk拆分,在代码中获取versionCode和versionName

安卓工作室 |无法解析现有的可绘制对象

android - 为什么我的构建在 Android Studio 中失败并出现异常 "Failed to find byte code for android/support/v7/app/ActionBarActivity"?

android - 如何修复 “ERROR: Unable to resolve dependency for ':app @ debug/compileClasspath':。” Android错误

android - Android如何从APK文件中排除某些文件夹

android - 我如何首先在 imageview 中加载模糊图像,然后使其清晰,以增强用户体验,对于 android?

Android Gallery 问题 - 图库大小大于预期