【发布时间】:2018-03-28 23:33:44
【问题描述】:
我尝试将我的应用注册到android的共享功能中,我发现我必须修改清单。
我做到了:
App.appendToConfig(`
<universal-links>
<host name="com.toto.app" />
</universal-links>
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
</config-file>
</platform>
`);
新行出现在 config.xml 中,但意图过滤器未出现在清单中,并且未生成应用程序。
这是错误信息
=> Started your app.
=> App running at: http://localhost:3000/
Type Control-C twice to stop.
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --device:
Error: Command failed: C:\dev\https://youtu.be/toto\.meteor\local\cordova-build\platforms\android\cordova\run --device --device
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
C:\dev\toto\.meteor\local\cordova-build\platforms\android\res\xml\config.xml:60: AAPT: Error parsing XML: unbound prefix
C:\dev\toto\.meteor\local\cordova-build\platforms\android\build\intermediates\res\merged\debug\xml\config.xml:60: error: Error parsing XML: unbound prefix
【问题讨论】:
标签: cordova meteor android-manifest