You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Override
public Set<? super QualifiedContent.Scope> getScopes() {
return TransformManager.SCOPE_FULL_WITH_FEATURES;
}
把scope修改为 SCOPE_FULL_WITH_FEATURES,
运行app,报错如下:
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_INVALID_APK
List of apks:
[0] '/Users/ko/Bundle/app/build/outputs/apk/debug/app-debug.apk'
[1] '/Users/ko/Bundle/kk/build/outputs/apk/debug/kk-debug.apk'
The APKs are invalid.
Retry
当用命令行运行: ./gradlew bundleDebug
报错如下:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebugBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.PackageBundleTask$BundleToolWorkAction
> Module 'base' has no dex files but the attribute 'hasCode' is not set to false in the AndroidManifest.xml.
说明生成的base.apk中没有 dex文件, 应该是transform阶段 失败了
The text was updated successfully, but these errors were encountered:
把scope修改为 SCOPE_FULL_WITH_FEATURES,
运行app,报错如下:
当用命令行运行:
./gradlew bundleDebug
报错如下:
说明生成的base.apk中没有 dex文件, 应该是transform阶段 失败了
The text was updated successfully, but these errors were encountered: