我正在尝试构建从 github 获得的 Alexa Android 应用程序......但它显示错误“无法找到 signing.gradle,请用您自己的配置替换 Android buildTypes > 签名配置。” 这是 github 链接:- https://github.com/willblaschko/AlexaAndroid
并且它从 build.gradle 文件中显示错误。
apply plugin: 'com.android.application'
if (file('signing.gradle').exists()) {
apply from: 'signing.gradle'
}else{
throw new TaskExecutionException(null, new Exception("Unable to find
signing.gradle, please replace Android buildTypes > signing configs with
your own configuration."));
}
android {
compileSdkVersion 24
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.willblaschko.android.alexavoicelibrary"
minSdkVersion 21
targetSdkVersion 24
versionCode 5
versionName "2.1.1"
multiDexEnabled true;
}
buildTypes {
debug{
versionNameSuffix " Debug"
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile project(path: ':libs:AlexaAndroid')
compile project(path: ':libs:RecorderLevelView')
compile project(path: ':libs:speechutils-master')
}