【问题标题】:Session 'app': Installation did not succeed. The application could not be installed: INSTALL_FAILED_INVALID_APK会话“应用程序”:安装未成功。无法安装应用程序:INSTALL_FAILED_INVALID_APK
【发布时间】:2020-03-26 17:33:09
【问题描述】:

你好早上好社区,我有点困惑,我正在集成 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.+'

}

【问题讨论】:

  • 你试过Build > Clean Project吗?甚至File > Invalid Caches/ Restart...?否则你可以检查stackoverflow.com/questions/19070816/…
  • 是的,我一直在阅读和审查,奇怪的是当我删除 AppDynamics 的整个实现时,项目运行正常,我不明白我是否执行错误。
  • 你应该避免使用像 '4.5.+' 这样的符号,并以直接版本为目标,因为它可能会导致这样的错误。

标签: android appdynamics


【解决方案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 并解决了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-06
    • 2020-08-21
    • 1970-01-01
    • 2016-01-02
    • 1970-01-01
    • 2011-04-15
    相关资源
    最近更新 更多