简体   繁体   English

构建签名的apk时出错我该如何解决这个问题?

[英]error while building signed apk how can i solve this?

I'm a new at android studio today finished a project trying to build signed apk but getting error I really tried hard to find reson but failing badly我是 android 工作室的新人,今天完成了一个项目,试图构建签名的 apk,但出现错误

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all task dependencies for configuration ':app:lintClassPath'.
   > Could not resolve com.android.tools.lint:lint-gradle:26.6.3.
     Required by:
         project :app
      > No cached version of com.android.tools.lint:lint-gradle:26.6.3 available for offline mode.
      > No cached version of com.android.tools.lint:lint-gradle:26.6.3 available for offline mode.
      > No cached version of com.android.tools.lint:lint-gradle:26.6.3 available for offline mode.

* 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 1s

and the app build section is given below, i don't know who to solve this, please give answer also mention reason so that i can learn form it app build section is given below:下面给出了应用程序构建部分,我不知道谁来解决这个问题,请给出答案并提及原因,以便我可以从中学习应用程序构建部分如下:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"

    defaultConfig {
        applicationId "com.example.covid_19"
        minSdkVersion 19
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }}}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.core:core-ktx:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'com.github.blackfizz:eazegraph:1.2.5l@aar'
    implementation 'com.nineoldandroids:library:2.4.0'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.leo.simplearcloader:simplearcloader:1.0.+'
    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
}

Disable offline mode in gradle and sync the project在 gradle 中禁用离线模式并同步项目

this happen because your android studio use gradle on mode offline.发生这种情况是因为您的 android 工作室在离线模式下使用 gradle。 please see this solutions: No Cached Version Gradle Plugin Available for offline mode请参阅此解决方案: 无缓存版本 Gradle 插件可用于离线模式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 构建签名APK时出错 - error while building signed APK 如何使用react native构建apk来解决这个问题? - How can I solve this problem in building apk using react native? 构建签名 Apk 时出现 ClassCastException - ClassCastException while building signed Apk 在使用 bubblewrap build 构建 apk 时显示错误 Unable to start the daemon process - While building an apk using bubblewrap build its shows error Unable to start the daemon process 我收到这个错误,如正文所示,在 ubuntu 中构建 apk 文件时,请帮我解决这个错误 - I am getting this error as shown in body, while building a apk file in ubuntu, please help me to solve this error 生成签名的 APK:构建 APK 时出错。 你可以找到错误 - Generate Signed APK: Errors while building APK. You can find the errors 生成签名的 APK:构建 APK 时出错。 您可以在“消息”视图中找到错误 - Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view 生成签名的APK时出错 - Error while generating a signed APK 为颤动构建签名的 apk 时出错(格式错误) - Error when building signed apk for flutter (malformed) 建立APK档案时发生错误 - Error while building apk file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM