1***@qq.com
1***@qq.com
  • 发布:2018-11-29 11:52
  • 更新:2019-02-13 10:03
  • 阅读:3052

android studio离线打包出现“打包时为添加push模块……”怎么解决?

分类:HBuilder

android studio离线打包出现“打包时为添加push模块……”怎么解决?

2018-11-29 11:52 负责人:无 分享
已邀请:
DCloud_Android_zl

DCloud_Android_zl

检查assets->data目录中的dcloud_properties.xml文件是否添加push模块(详细配置见SDK中的Excel文件),或者是否有按照Excel配置添加相应的aar或者jar。

  • 1***@qq.com (作者)

    都有的,

    2018-11-29 13:36

  • 1***@qq.com (作者)

    您所说的那几个我都有贴图在评论里面,麻烦帮忙看下,这个问题我已经找了两天的解决方案了,谢谢

    2018-11-29 13:43

  • DCloud_Android_zl

    回复 1***@qq.com:方便把项目发给我,我看一下吗?

    2018-11-29 13:54

  • 1***@qq.com (作者)

    等下,我好像找到了,是我再build.gradle文件中没有引个推得那两个文件,但是我写了implementation fileTree(dir: 'libs', include: ['*.aar'])这个的话,也会报错,难道我以后需要一个一个包去引吗?

    2018-11-29 13:57

  • 1***@qq.com (作者)

    这个上面说的那句话报错信息是这个


    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugManifest'.

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)

    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)

    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)

    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)

    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)

    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)

    at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)

    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)

    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)

    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)

    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)

    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)

    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)

    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:663)

    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:597)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)

    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)

    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)

    at java.lang.Thread.run(Thread.java:745)

    Caused by: java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs

    at com.android.builder.core.AndroidBuilder.mergeManifestsForApplication(AndroidBuilder.java:540)

    at com.android.build.gradle.tasks.MergeManifests.doFullTaskAction(MergeManifests.java:173)

    at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)

    at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)

    at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)

    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)

    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)

    ... 33 more

    2018-11-29 13:58

  • DCloud_Android_zl

    回复 1***@qq.com:http://ask.dcloud.net.cn/question/58278 参考这个问题下的回复试一下

    2018-11-29 14:41

1***@qq.com

1***@qq.com (作者)

这些都有的,我不知道哪里错了,然后看文档说
问:打包后页面中无法调用5 + API
A:修改app-> build.gradle文件defaultConfig节点下miniSdkVersion和targetSdkVersion属性指定版本号为8

然后这个修改成8后更错了,都调试不了了

w***@yeah.net

w***@yeah.net - 还没有

解决了。谢谢楼主。确实是在build.gradle里面的dependencies把下面两句加上就可以了~
compile(name: 'aps-igexin-release', ext: 'aar')
compile(name: 'aps-release', ext: 'aar')

====完整代码=======

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compile(name: 'lib.5plus.base-release', ext: 'aar')
compile(name: 'aps-igexin-release', ext: 'aar')
compile(name: 'aps-release', ext: 'aar')
implementation 'com.android.support:appcompat-v7:28.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

  • 1***@qq.com

    谢谢老铁,我跟着官方文档配置完成了,一进系统提示push模块缺失,找了好久才看到这里。我直接去掉了compile,然后用了 implementation fileTree(include: ['*.aar'], dir: 'libs')这一句,以免后续又来一个插件提示缺失。

    2019-12-29 13:54

该问题目前已经被锁定, 无法添加新回复