我的AndroidManifest.xml文件充满了错误,为什么?

huangapple go评论108阅读模式
英文:

My AndroidManifest.xml is full of errors, why?

问题

这是你的翻译内容:

我正在尝试在Android Studio中制作我的第一个应用程序。我尝试在我的AndroidManifest.xml上编写了一些代码,但它没有起作用,所以我又将其删除了。但是现在我的AndroidManifest.xml中充满了错误,我无法运行我的应用程序。我不知道出了什么问题。关于编码我了解得不多。我希望有人能帮助我。我的AndroidManifest.xml看起来像这样:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. package="com.example.bobbysmedicin">
  5. <application
  6. android:allowBackup="true"
  7. android:icon="@mipmap/ic_launcher"
  8. android:label="@string/app_name"
  9. android:roundIcon="@mipmap/ic_launcher_round"
  10. android:supportsRtl="true"
  11. android:theme="@style/AppTheme">
  12. <activity android:name=".AboutActivity"></activity>
  13. <activity
  14. android:name=".MainActivity"
  15. android:screenOrientation="landscape">
  16. <intent-filter>
  17. <action android:name="android.intent.action.MAIN" />
  18. <category android:name="android.intent.category.LAUNCHER" />
  19. </intent-filter>
  20. </activity>
  21. </application>
  22. </manifest>
英文:

I'm trying to make my first app in Android Studio. I tried to write something on my AndroidManifest.xml that didn't work, so I deleted it again. But now my AndroidManifest.xml is full of errors and I cant run my app. I have no idea whats wrong. I dont know so much about coding. I hope someone can help me. My AndroidManifest.xml looks like this:

  1. &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  2. &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  3. xmlns:tools=&quot;http://schemas.android.com/tools&quot;
  4. package=&quot;com.example.bobbysmedicin&quot;&gt;
  5. &lt;application
  6. android:allowBackup=&quot;true&quot;
  7. android:icon=&quot;@mipmap/ic_launcher&quot;
  8. android:label=&quot;@string/app_name&quot;
  9. android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
  10. android:supportsRtl=&quot;true&quot;
  11. android:theme=&quot;@style/AppTheme&quot;&gt;
  12. &lt;activity android:name=&quot;.AboutActivity&quot;&gt;&lt;/activity&gt;
  13. &lt;activity
  14. android:name=&quot;.MainActivity&quot;
  15. android:screenOrientation=&quot;landscape&quot;/&gt;
  16. &lt;intent-filter&gt;
  17. &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  18. &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
  19. &lt;/intent-filter&gt;
  20. &lt;/activity&gt;
  21. &lt;/application&gt;
  22. &lt;/manifest&gt;

答案1

得分: 2

Sure, here's the translation:

移除这个(空格或制表符),然后尝试运行你的应用。

英文:

我的AndroidManifest.xml文件充满了错误,为什么?

Remove this (space or tab), then try to run your app

huangapple
  • 本文由 发表于 2020年9月23日 19:45:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/64027242.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定