所以我有这个代码,在我的 LoginActivity 中,当我点击注册按钮时,它显示这个错误:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.vosk.demo, PID: 24098
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.vosk.demo/org.vosk.demo.RegisterActivity}: android.view.InflateException: Binary XML file line #13: Binary XML file line #13: Error inflating class <unknown>
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3320)
at ....
请帮帮我。 编辑: 我的 AndroidManifest 文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.vosk.demo">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/AppBaseTheme">
<activity android:name=".ForgotPassword"></activity>
<activity
android:name=".LoginActivity"
android:label="login">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".RegisterActivity" />
<activity
android:name=".VoskActivity"
android:label="@string/app_name"></activity>
</application>
</manifest>