Tôi đang gặp những cảnh báo sau đây trong xây dựng gradle tôi tậpGradle Cảnh báo: thiếu groovy trở lại tuyên bố
Not all execution paths return a value
This inspection reports on missing groovy return statement at the end of methods returning
và đây là mã trong tập tin đó
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "ac.company.srikar.quickhelpindia"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}
}
bất cứ ai có thể cho là những gì vấn đề ở đây và cách loại bỏ cảnh báo này.
gì là thực tế đầu ra từ gradle? Làm thế nào bạn chạy nó? –
Tôi chưa định cấu hình loại xây dựng gỡ lỗi, có thể đó là vấn đề? – Opal
@tim_yates Tôi không chạy nó. Khi tôi mở tệp build.gradle của mô-đun, nó sẽ hiển thị thông báo cảnh báo màu vàng gần thanh cuộn. Ngoài ra, khi tôi di chuột qua "phát hành", "minifyEnabled", "proguardFiles", "getDefaultProguardFile" hoặc "biên dịch", nó hiển thị thông báo cho biết "không thể giải quyết biểu tượng" –