Skip to content

使用abi拆分后,插件不生效 #533

@bytc687e

Description

@bytc687e

问题详细描述 Detailed description of the problem

以host插件为例,使用gradle plugin 3.0.1,脚本中启用abi拆分,打包后,会提示“Failed to find provider info for 包名.loader.p.main”。分析后发现, Host插件中代码manifest采用拼接方式,if (file.isDirectory()) {manifestFile = new File(file, "AndroidManifest.xml")},在gradle 3.0.0之后,启用abi拆分后,AndroidManifest.xml路径为file目录下armeabi/AndroidManifest.xml,导致插件失效。

plugin的插件也是会因为该原因导致activity等替换失败。

复现问题步骤 Steps to reproduce the problem

  1. 使用gradle plugin 3.0.1
  2. build.gradle中配置
    splits {
    abi {
    enable true
    reset()
    include('armeabi')
    universalApk false
    }
    }
  3. 打包后,打开app,报错。

其它重要信息 Other important information

replugin-host-lib/gradle Version:2.2.4
rePlugin-plugin-lib/gradle Version:2.2.4

Android API Version:any
Android 手机型号&ROM(Phone model & ROM): any

Logcat上下文 Logcat context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions