use*_*727 6 java android nullpointerexception android-studio
嗨,大家好,我希望你能帮助我,
如果我想运行我的应用程序,我会收到此错误.
错误:任务':app:transformClassesWithInstantRunForDebug'的执行失败.java.lang.NullPointerException(无错误消息)
我的Gradle看起来像这样
pply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.example.herold.datenaufnahme"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile project(':EMDK')
}
Run Code Online (Sandbox Code Playgroud)
小智 7
当我尝试在项目级别升级gradle插件版本时,就发生了这种情况.它是
classpath'com.android.tools.build:grad:2.1.3'
然后我将其升级到2.2-beta,然后我得到了同样的错误.
将其设置回'2.1.3'为我修复了它
| 归档时间: |
|
| 查看次数: |
7539 次 |
| 最近记录: |