当我在Android Studio上使用vlc-android-demo-master时,发生了这个问题:
Error:(16, 1) A problem occurred evaluating project ':app'.
在BuildType_Decorated {name = release,debuggable = false,testCoverageEnabled = false,jniDebuggable = false,pseudoLocalesEnabled = false,renderscriptDebuggable = false,renderscriptOptimLevel = 3,minifyEnabled = false,找不到参数[false]的方法runProguard() zipAlignEnabled = true,signingConcig = null,mBuildConfigFields = {},mResValues = {},mProguardFiles = [],mConsumerProguardFiles = [],mManifestPlaceholders = {}},类型为com.android.build.gradle.internal.dsl .BuildType。
但我不知道它是如何产生的,以及如何解决。但我认为这可能与gradle有关。这是我的build.gradle代码。
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "com.nmbb.vlc"
minSdkVersion 9
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.1.0'
}
答案 0 :(得分:0)
在gradle中将//reoponsebody method only
@ReoponsebodyMethod
@ExceptionHandler({Exception.class})
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
public String handleIllegalStateException(Exception ex) {
//return son
}
更改为runProguard