【问题标题】:Task 'installRelease' not found in root project在根项目中找不到任务“installRelease”
【发布时间】:2018-05-25 10:36:26
【问题描述】:

好的,我遇到了标题中描述的问题。这是我的 gradle 文件

   apply plugin: 'com.android.application'

        android {
            compileSdkVersion 27

            signingConfigs {
                debug {
                    keyAlias 'alias'
                    keyPassword 'larissa'
                    storeFile file('capstoneproject.jks')
                    storePassword 'larissa81'
                }
            }

            defaultConfig {
                applicationId "theo.tziomakas.news"
                minSdkVersion 21
                targetSdkVersion 27
                versionCode 1
                versionName "1.0"
                testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
            }
            buildTypes {
                release {
                    minifyEnabled false
                    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                }
            }
            buildToolsVersion '27.0.3'
        }

        dependencies {
            implementation fileTree(include: ['*.jar'], dir: 'libs')
            implementation 'com.android.support:appcompat-v7:27.0.2'
            implementation 'com.android.support:support-v4:27.0.2'
            implementation 'com.android.support:cardview-v7:27.0.2'
            implementation 'com.android.support:support-v13:27.0.2'
            implementation 'com.android.support:design:27.0.2'
            implementation 'com.android.support.constraint:constraint-layout:1.1.0'
            implementation 'com.google.firebase:firebase-auth:11.8.0'
            implementation 'com.google.firebase:firebase-database:11.8.0'
            testImplementation 'junit:junit:4.12'
            androidTestImplementation 'com.android.support.test:runner:1.0.2'
            androidTestImplementation 'com.android.support.test:rules:1.0.2'
            implementation 'com.android.support:support-annotations:27.1.1'
            androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
            implementation 'com.squareup.picasso:picasso:2.5.2'
            implementation 'com.google.code.gson:gson:2.8.2'
        }

        apply plugin: 'com.google.gms.google-services'

我在 app 文件夹中有 jks 文件。当然我也创建了apk文件。

那么我该如何解决这个错误呢?

当我运行应用程序时出现此错误。

 Keystore file '/Users/theodosiostziomakas/Desktop/capstone/Capstone-Udacity/app/capstoneproject.jks' not found for signing config 'debug'.

谢谢,

西奥。

【问题讨论】:

    标签: android android-studio gradle task


    【解决方案1】:

    请检查您的密钥库文件是否位于以capstoneproject.jks 命名的/Users/theodosiostziomakas/Desktop/capstone/Capstone-Udacity/app/ 并尝试再次生成签名的apk 如果文件在其他宫殿然后通过选择choose exixting Button 在生成签名的apk 对话框中更改密钥库文件的路径并将您的.jks 文件路径放在这里。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-05
      • 2017-08-17
      • 2020-08-20
      • 1970-01-01
      • 2020-01-26
      • 2022-01-17
      • 2015-06-25
      相关资源
      最近更新 更多