当前位置: 首页 > 知识库问答 >
问题:

代号One android构建失败

王高邈
2023-03-14

我试图将我的Codename One应用程序发送到构建服务器以构建android应用程序,但它一直失败。模拟器上一切正常,没有错误。唯一的问题是当我尝试将项目发送到构建服务器时。这是错误日志。我如何修复这个问题?

Executing: /home/ec2-user/android/gradle-2.11/bin/gradle assembleDebug -  -no-daemon --stacktrace --info To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.11/userguide/gradle_daemon.html.
Starting daemon process: workingDir = /home/ec2-user/.gradle/daemon/2.11, daemonArgs: [/home/ec2-user/jdk1.8.0_45/bin/java, -XX:MaxPermSize=512m, -XX:+HeapDumpOnOutOfMemoryError, -Xmx2048m, -Dfile.encoding=UTF-8, -Duser.country=US, -Duser.language=en, -Duser.variant, -cp, /home/ec2-user/android/gradle-2.11/lib/gradle-launcher-2.11.jar, org.gradle.launcher.daemon.bootstrap.GradleDaemon, 2.11]
Starting process 'Gradle build daemon'. Working directory: /home/ec2-user/.gradle/daemon/2.11 Command: /home/ec2-user/jdk1.8.0_45/bin/java -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/ec2-user/android/gradle-2.11/lib/gradle-launcher-2.11.jar    org.gradle.launcher.daemon.bootstrap.GradleDaemon 2.11
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 0.889 secs.
Connected to daemon DaemonInfo{pid=1668, address=[03f42828-ace4-482d-a252-c6948768b51e port:34287, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=2313a84a-24c5-475e-92ee-bfe642e21a4b,javaHome=/home/ec2-user/jdk1.8.0_45,daemonRegistryDir=/home/ec2-user/.gradle/daemon,pid=1668,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx2048m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]}. Dispatching request BuildAndStop{id=108a736a-2906-4e54-8f6e-53dfa3a8c086.1, currentDir=/tmp/build4588544765602326489xxx/MyApplication}.
Received result org.gradle.launcher.daemon.protocol.BuildStarted@d554c5f from daemon DaemonInfo{pid=1668, address=[03f42828-ace4-482d-a252-c6948768b51e port:34287, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=2313a84a-24c5-475e-92ee-bfe642e21a4b,javaHome=/home/ec2-user/jdk1.8.0_45,daemonRegistryDir=/home/ec2-user/.gradle/daemon,pid=1668,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx2048m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be starting).
The client will now receive all logging from the daemon (pid: 1668). The daemon log file: /home/ec2-user/.gradle/daemon/2.11/daemon-1668.out.log
Executing build with daemon context: DefaultDaemonContext[uid=2313a84a-24c5-475e-92ee-bfe642e21a4b,javaHome=/home/ec2-user/jdk1.8.0_45,daemonRegistryDir=/home/ec2-user/.gradle/daemon,pid=1668,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx2048m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Starting Build
Settings evaluated using settings file '/master/settings.gradle'.
Projects loaded. Root project using build file '/tmp/build4588544765602326489xxx/MyApplication/build.gradle'.
Included projects: [root project 'MyApplication']
Evaluating root project 'MyApplication' using build file '/tmp/build4588544765602326489xxx/MyApplication/build.gradle'.
Compiling build file '/tmp/build4588544765602326489xxx/MyApplication/build.gradle' using SubsetScriptTransformer.
Compiling build file '/tmp/build4588544765602326489xxx/MyApplication/build.gradle' using BuildScriptTransformer.

Parsing the SDK, no caching allowed
Parsing /home/ec2-user/android-sdk/build-tools/19.0.3/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/23.0.1/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/19.0.0/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/19.0.1/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/17.0.0/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/19.1.0/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/18.0.1/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/18.1.1/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/20.0.0/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/19.0.2/package.xml
Parsing /home/ec2-user/android-sdk/build-tools/18.1.0/package.xml
Parsing /home/ec2-user/android-sdk/tools/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/auto/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/webdriver/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/admob_ads_sdk/package.xml
Parsing /home/ec2-user/android-   sdk/extras/google/google_play_services/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/market_licensing/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/play_apk_expansion/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/gcm/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/simulators/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/google_play_services_fit_preview/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/play_billing/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/analytics_sdk_v2/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/google_play_services_froyo/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/play_licensing/package.xml
Parsing /home/ec2-user/android-sdk/extras/google/m2repository/package.xml
Parsing /home/ec2-user/android-sdk/extras/android/gapid/package.xml
Parsing /home/ec2-user/android-sdk/extras/android/support/package.xml
Parsing /home/ec2-user/android-sdk/extras/android/m2repository/package.xml
Parsing /home/ec2-user/android-sdk/system-images/android-23/google_apis/x86_64/package.xml
Parsing /home/ec2-user/android-sdk/system-images/android-23/google_apis/x86/package.xml
Parsing /home/ec2-user/android-sdk/system-images/android-23/google_apis/armeabi-v7a/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-19-1/package.xml
Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location '/home/ec2-user/android-sdk/add-ons/addon-google_apis-google-19-1' (Expected '/home/ec2-user/android-sdk/add-ons/addon-google_apis-google-19')
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-13/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-12/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-15/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-23/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_tv_addon-google-12/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-17/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-14/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-16/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-5/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis_x86-google-19/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-21/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-6/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_tv_addon-google-13/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-4/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-11/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-7/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-9/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-8/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-18/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_gdk-google-19/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-24/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-10/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-3/package.xml
Parsing /home/ec2-user/android-sdk/add-ons/addon-google_apis-google-22/package.xml
Using incremental javac compilation.
Incremental java compilation is an incubating feature.
Not using incremental javac compilation.
Using incremental javac compilation.
Not using incremental javac compilation.
Using incremental javac compilation.
All projects evaluated.
Selected primary task 'assembleDebug' from project :
Tasks to be executed: [task ':preBuild', task ':preDebugBuild', task  ':checkDebugManifest', task ':preReleaseBuild',task ':prepareComAndroidSupportSupportV42340Library', task ':prepareComGoogleAndroidGmsPlayServicesBase830Library', task ':prepareComGoogleAndroidGmsPlayServicesBasement830Library', task ':prepareComGoogleAndroidGmsPlayServicesMaps830Library', task ':prepareDebugDependencies', task ':compileDebugAidl', task ':compileDebugRenderscript', task ':generateDebugBuildConfig', task ':mergeDebugShaders', task ':compileDebugShaders', task ':generateDebugAssets', task ':mergeDebugAssets', task ':generateDebugResValues', task ':generateDebugResources', task ':mergeDebugResources', task ':processDebugManifest', task ':processDebugResources', task ':generateDebugSources', task ':incrementalDebugJavaCompilationSafeguard', task ':compileDebugJavaWithJavac', task ':compileDebugNdk', task ':compileDebugSources', task ':prePackageMarkerForDebug', task ':transformClassesWithDexForDebug', task ':mergeDebugJniLibFolders', task ':transformNative_libsWithMergeJniLibsForDebug', task ':processDebugJavaRes', task ':transformResourcesWithMergeJavaResForDebug', task ':validateDebugSigning', task ':packageDebug', task ':zipalignDebug', task ':assembleDebug']
Creating In-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/fileHashes.bin: MaxSize{878900}
Creating In-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/outputFileStates.bin: MaxSize{6500}
Creating In-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/fileSnapshots.bin: MaxSize{21900}
Creating In-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/taskArtifacts.bin: MaxSize{4300}
:preBuild (Thread[Daemon worker,5,main]) started.
:preBuild
Skipping task ':preBuild' as it has no actions.
:preBuild UP-TO-DATE
:preBuild (Thread[Daemon worker,5,main]) completed. Took 0.013 secs.
:preDebugBuild (Thread[Daemon worker,5,main]) started.
:preDebugBuild
Skipping task ':preDebugBuild' as it has no actions.
:preDebugBuild UP-TO-DATE
:preDebugBuild (Thread[Daemon worker,5,main]) completed. Took 0.003 secs.
:checkDebugManifest (Thread[Daemon worker,5,main]) started.
:checkDebugManifest
Executing task ':checkDebugManifest' (up-to-date check took 0.001 secs) due  to:
Task has not declared any outputs.
:checkDebugManifest (Thread[Daemon worker,5,main]) completed. Took 0.006 secs.
:preReleaseBuild (Thread[Daemon worker,5,main]) started.
:preReleaseBuild
Skipping task ':preReleaseBuild' as it has no actions.
:preReleaseBuild UP-TO-DATE
:preReleaseBuild (Thread[Daemon worker,5,main]) completed. Took 0.002 secs.
:prepareComAndroidSupportSupportV42340Library (Thread[Daemon worker,5,main]) started.
:prepareComAndroidSupportSupportV42340Library
Invalidating in-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/outputFileStates.bin
Invalidating in-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/fileSnapshots.bin
Invalidating in-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/fileHashes.bin
Invalidating in-memory cache of /tmp/build4588544765602326489xxx/MyApplication/.gradle/2.11/taskArtifacts/taskArtifacts.bin
Executing task ':prepareComAndroidSupportSupportV42340Library' (up-to-date check took 0.035 secs) due to:
  No history is available.
:prepareComAndroidSupportSupportV42340Library (Thread[Daemon worker,5,main])  completed. Took 0.191 secs.
:prepareComGoogleAndroidGmsPlayServicesBase830Library (Thread[Daemon worker,5,main]) started.
:prepareComGoogleAndroidGmsPlayServicesBase830Library
Executing task ':prepareComGoogleAndroidGmsPlayServicesBase830Library' (up-to-date check took 0.002 secs) due to:
  No history is available.
:prepareComGoogleAndroidGmsPlayServicesBase830Library (Thread[Daemon worker,5,main]) completed. Took 0.243 secs.
:prepareComGoogleAndroidGmsPlayServicesBasement830Library (Thread[Daemon worker,5,main]) started.
:prepareComGoogleAndroidGmsPlayServicesBasement830Library
Executing task ':prepareComGoogleAndroidGmsPlayServicesBasement830Library' (up-to-date check took 0.006 secs) due to:
  No history is available.
:prepareComGoogleAndroidGmsPlayServicesBasement830Library (Thread[Daemon worker,5,main]) completed. Took 0.191 secs.
:prepareComGoogleAndroidGmsPlayServicesMaps830Library (Thread[Daemon worker,5,main]) started.
:prepareComGoogleAndroidGmsPlayServicesMaps830Library
Executing task ':prepareComGoogleAndroidGmsPlayServicesMaps830Library' (up-to-date check took 0.003 secs) due to:
 No history is available.


FAILURE: Build failed with an exception.

* What went wrong:
Cannot read packageName from /tmp/build4588544765602326489xxx/MyApplication/src/main/AndroidManifest.xml

* Try:
 Run with --debug option to get more log output.
*Exception is:
java.lang.RuntimeException: Cannot read packageName from /tmp/build4588544765602326489xxx/MyApplication/src/main/AndroidManifest.xml
at com.android.builder.core.VariantConfiguration.getPackageFromManifest(VariantConfiguration.java:999)
at com.android.builder.core.VariantConfiguration.getOriginalApplicationId(VariantConfiguration.java:780)
at com.android.build.gradle.tasks.GenerateBuildConfig$ConfigAction$_execute_closure1.doCall(GenerateBuildConfig.groovy:167)
at com.android.build.gradle.tasks.GenerateBuildConfig$ConfigAction$_execute_closure1.doCall(GenerateBuildConfig.groovy)
at org.gradle.api.internal.ConventionAwareHelper$2.getValue(ConventionAwareHelper.java:84)
at org.gradle.api.internal.ConventionAwareHelper$MappedPropertyImpl.getValue(ConventionAwareHelper.java:136)
at org.gradle.api.internal.ConventionAwareHelper.getConventionValue(ConventionAwareHelper.java:114)
at  com.android.build.gradle.tasks.GenerateBuildConfig_Decorated.getBuildConfigPackageName(Unknown Source)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at  org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$PropertyInfo$4.create(AnnotationProcessingTaskFactory.java:458)
at org.gradle.util.SingleMessageLogger.whileDisabled(SingleMessageLogger.java:166)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$PropertyInfo.getValue(AnnotationProcessingTaskFactory.java:456)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$Validator.validate(AnnotationProcessingTaskFactory.java:277)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:41)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:45)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:40)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
BUILD FAILED
Total time: 9.892 secs
Stopped 0 compiler daemon(s).
Received result Failure[value=org.gradle.initialization.ReportedException:     org.gradle.internal.exceptions.LocationAwareException: Cannot read packageName from /tmp/build4588544765602326489xxx/MyApplication/src/main/AndroidManifest.xml] from daemon DaemonInfo{pid=1668, address=[03f42828-ace4-482d-a252-c6948768b51e port:34287, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=2313a84a-24c5-475e-92ee-bfe642e21a4b,javaHome=/home/ec2-user/jdk1.8.0_45,daemonRegistryDir=/home/ec2-user/.gradle/daemon,pid=1668,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx2048m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).

以下是我添加的构建提示:1 .JavaScript . Google maps . KEY = JavaScript _ KEY 2。IOs . afterfinishlaunching =[GMS services provideAPIKey:@ " My _ IOs _ Key "];3 . Android . x应用=

共有1个答案

印子平
2023-03-14

我已经找到了解决方案,问题是我在添加构建提示时犯了一个错误。解决方案是删除并重新添加构建提示,确保这次没有错误。谢谢你的帮助

 类似资料:
  • 直到昨天一切都很好,我可以构建我的UWP应用程序,并从构建服务器下载它。 从今天开始,如果不更改任何内容,我就会收到一个错误: 有人知道怎么修吗?

  • 尝试将我的应用程序发送到服务器进行构建时遇到错误(android)。Netbeans输出以下消息(实际用户名已删除): 建筑xml(第338行附近): 代号一设置也不会显示... 当我收到这个错误时,它开始: 与此同时,Netbeans在JavaFX上遇到了一个问题。所以我下载了最新的jdk,并在codename one中添加了一个提示:java.version - 编辑:Codename_set

  • 我正在尝试将我的lwuit应用程序移植到codenameone。 我在应用程序中使用了一个json包。(org.json.me)。这个包实际上是json jar的一部分,包含用于操作json文件的类。 当我使用LWUIT进行J2ME构建时,该应用程序运行良好。 在代号为one的emulator中,应用程序也可以正常工作。 当我试图通过右键单击项目并选择“send J2ME build”将J2ME构

  • 嘿,我在新库(3.4)上遇到了一个构建错误,但我的应用程序在3.3上仍然运行良好。 这个问题看起来可能与此有关: 多个dex文件定义Landroid/support/v4/Accessibilityservice/AccessibilityServiceInfoCompat 我把android.supportV4设置为false我也android.gradle设置为false 错误日志的relve

  • 我已经将我的LWUIT项目移植到代号为One的平台上,并成功发送了Android build。结果的大小。apk文件是2.3M,而LWUIT(Thorsten的port)1小了1M(实际上是700K,但代号1中有两个大型Android主题,所以大约是1.3M——我查过了)。另外,LWUIT。与Codename One不同,apk类没有混淆。 有什么方法可以减少。apk文件大小 另外,是否有Ecli

  • 我正在阅读这个关于如何绑定Python和C的教程。我正在使用Python v3.7.1,所以我不得不使用新的Python接口(与示例不同),所以现在我有: 加法器。c 似乎一切都是正确的,我可以通过调用addList来运行Python代码。add()函数。但在构建模块时,我得到了以下输出(请注意,在出现此错误后,我可以很好地运行Python代码): $pythonsetup.py安装运行安装运行构