androidgradleandroid-gradle-pluginandroid-manifestandroid-deep-link

Deeplink issue after upgrading gradle


I have app using deeplinks with navigation component. Until usage of AGP 8.0.2 and gradle wrapper 8.0 everything was working perfect. I have verified that just this update causes collapse of recognizing my deeplinks in system causing error "Activity not started, unable to resolve intent"

My config of deeplinks is following:

//MAnifest
<activity
            android:name=".delivery.DeliveryActivity"
            android:exported="true"
            android:launchMode="singleTask"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustPan"
            tools:ignore="LockedOrientationActivity">
            <nav-graph android:value="@navigation/delivery_nav_graph" />

            <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="myschemea://"
                    android:host="myhost.com"
                    android:pathPrefix="/receipt/delivery" />
            </intent-filter>
        </activity>
/**
* Graph
*/

 <fragment
        android:id="@+id/delivery_payment_result"
        android:name="mypackage.delivery.payment.DeliveryPaymentResultFragment"
        android:label="@string/payment_result_title">

        <deepLink
            android:autoVerify="false"
            app:mimeType="type/subtype"
            app:uri="myschema://myhost/receipt/delivery" />
     
    </fragment>

I have no rights (WTF) to post it on google issue tracker so writing here. Maybe somebody has some idea what is going on? As said - compared current version app and same but with reversed gradle updates and result is crystal clear

EDIT: I had run some more checks and seems that solely updating AGP is causing trouble. They had released now 8.1.1 and issue stays same.


Solution

  • Ok, I found issue. Seems that in previous tools versions schema like: "mySchema://" or "HTTP://" was accepted on 8.1.* gradle tools is no longer and it should be without leading :// like: "mySchema" or "HTTP"