最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

runtime error - Deeplink in MAUI "Java.lang.RuntimeException", unable to instantiate activity ComponentInfo -

programmeradmin1浏览0评论

I'm trying to handle deeplink in MAUI app; modified AndroidManifest.xml as following:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=";>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application android:name="DeeplinkTest" 
                 android:allowBackup="true" 
                 android:icon="@mipmap/appicon" 
                 android:roundIcon="@mipmap/appicon_round" 
                 android:supportsRtl="true">
        <activity
            android:name="DeeplinkTest.MainActivity"
            android:exported="true"
            android:windowSoftInputMode="stateHidden|adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <!-- Deep Link Intent Filter -->
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="https" android:host="foo" android:pathPrefix="/bar/" />
            </intent-filter>
        </activity>

    </application>
</manifest>

but it runs into Java.lang.RuntimeException This is 9.0. After removing the <activity .. /> from the file, app runs well. What's wrong?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论