好的,我有标题中描述的问题。这是我的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'
我在应用程序文件夹中有jks文件。当然我也创建了apk文件。
那么我该如何解决该错误呢?
当我运行该应用程序时,出现此错误。
Keystore file '/Users/theodosiostziomakas/Desktop/capstone/Capstone-Udacity/app/capstoneproject.jks' not found for signing config 'debug'.
谢谢,
西奥
最佳答案
请检查您的密钥库文件是否位于以/Users/theodosiostziomakas/Desktop/capstone/Capstone-Udacity/app/
命名的capstoneproject.jks
上,如果文件位于其他宫殿,请尝试再次生成签名的apk,然后通过选择choose exixting Button
并在此处放置.jks
文件路径来更改密钥库文件在生成签名的apk对话框中的路径。
关于android - 在根项目中找不到任务 'installRelease',我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50527276/