1

Yesterday I upgraded Android-Studio from 3.0.1 to 3.1.0 and found a problem with clicking Debug/Run app.

gradle version is upgraded from 3.0.1 to 3.1.0 buildToolsVersion version is upgraded 27.0.3

Gradle sync has been successful.

Every time you click the Debug app, as shown in Figure 1, there will be Error installing APK: Figure 2

Clicking Debug app

Error status

    //Error information
    03/28 15:40:41: Launching app
    The APK file/Users/hanson/myWork/android/nuttracker/app/build/outputs/apk/debug/app-debug.apk does not exist on disk.
    Error while Installing APK


    //project root build.gradle file:
    buildscript {
    repositories {
        mavenCentral()
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
            google()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.0'
            classpath 'com.google.gms:google-services:3.0.0'
        }
    }
    allprojects {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
        }
        repositories {
            mavenCentral()
            jcenter()
            maven {
                url 'https://maven.google.com/'
                name 'Google'
            }
            google()
        }
    }
    //app module dependencies library's version
    ext {
        compileSdkVersion = 26
        buildToolsVersion = "27.0.3"
        minSdkVersion = 18
        targetSdkVersion = 26

        // App dependencies
        gmsVersion = '11.8.0'
        supportLibraryVersion = '27.0.2'
        retrofitVersion = '2.3.0'
    }
Cœur
  • 37,241
  • 25
  • 195
  • 267
Bingerz
  • 1,027
  • 1
  • 11
  • 15

1 Answers1

0

Thanks @Santanu Sur, I uninstall old Android-Studio app. The problem is solved.

Bingerz
  • 1,027
  • 1
  • 11
  • 15