状态:未找到解决方案。我正在编辑我在步骤结束时尝试的步骤。
这是有效的(创建示例应用,并在Android上运行):
meteor create meteor-example
..等等等等。
meteor run android
但我的主要项目不是正在运作。这是详细的代码
:processDebugManifest
FAILEDting app on Android Emulator \
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/sea/Android/Sdk/build-tools/24.0.0/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.557 secs
Error code 1 for command: /home/sea/allinone/.meteor/local/cordova-build/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/sea/allinone/.meteor/local/cordova-build/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true undefined
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --emulator:
Error: Command failed:
/home/sea/allinone/.meteor/local/cordova-build/platforms/android/cordova/run
--emulator
at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
/home/sea/.meteor/packages/meteor-tool/.1.3.3_1.qc654++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
ExitWithCode:1
我现在在第一行看到了错误。
:processDebugManifest FAILEDting app on Android Emulator \
我应该为它创建一个mobileconfig.js吗?我不知道如何使用mobileconfig,但如果有必要,我会搜索它。
我的调试调查:
1)失败邮件是::processDebugManifestFAILEDting app on Android Emulator
。我想我应该在.meteor/local/cordova-build/platforms/android
编辑我的cordova的androidManifest。要检查有什么问题,请打开两个清单文件(ExampleApp的清单,MainApp的清单)。一切看起来都一样。 更改了使用-sdk minSdkVersion 14到21 ,计算机冻结,usb鼠标延迟工作。重启电脑。再次尝试使用meteor run android-device --verbose
决赛:投掷同样的错误。
我认为它与androidManifest文件有关。