应用程序没有安装错误在android中kotlin gradle 3.0.0-alpha5

apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "//" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } and project level buildscript { ext.kotlin_version = '1.1.2-4' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0-alpha5' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() mavenCentral() maven { url 'https://maven.fabric.io/public' } } } task clean(type: Delete) { delete rootProject.buildDir } 

实际上,在我当时使用2.3 gradle之前,现在没有错误,现在我更改为3.0.0-alphs-5应用程序不安装错误。 我很感激,如果你解决这个错误。 是kotlin错误或任何不同的,我不能find解决方案,请帮助我(这只是当我不是通过工作室调试共享)

尝试以下

 ./gradlew --stop 

然后去

 File > invalidate caches / restart > invalidate and restart 

检查你的清单,如果你的MainActivity重复。