会话“ app”:安装未成功。无法安装该应用程序:INSTALL_FAILED_INVALID_APK

时间:2020-03-26 17:33:09

标签: android appdynamics

您好,早上好社区,我有些困惑,我正在集成Cisco AppDynamics工具,在执行文档中提到的集成时,以及在运行项目时会引发以下错误。

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_INVALID_APK
The APKs are invalid.
Retry

事件日志:

Session 'app': Installation did not succeed.
                The application could not be installed: INSTALL_FAILED_INVALID_APK
                Retry

build.gradel:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
 buildscript {

repositories {
    google()
    jcenter()

}
dependencies {
    classpath 'com.android.tools.build:gradle:3.6.1'
    classpath 'com.appdynamics:appdynamics-gradle-plugin:4.5.+'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    }
 }
  allprojects {
   repositories {
    google()
    jcenter()

  }
}
   task clean(type: Delete) {
   delete rootProject.buildDir
}

build.gradel(:app)

apply plugin: 'com.android.application'
apply plugin: 'adeum'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"

defaultConfig {
    applicationId "mx.com.hdi.autoseguro.appdynamics"
    minSdkVersion 23
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
  }
}

依赖性{

implementation 'com.appdynamics:appdynamics-runtime:4.5.+'

}

1 个答案:

答案 0 :(得分:1)

这是AppDynamics插件和gradle插件工具3.6.x的问题。您可以看到以下链接:https://community.appdynamics.com/t5/End-User-Monitoring-EUM/AppDynamic-EUM-setup-for-Android-Cordova-project/td-p/38864

我已经将gradle插件工具降级到3.5.x并解决了