After updating Android Studio I have this error with Navigation-args
Build failed
API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'ApplicationVariant.applicationId'.
It will be removed in version 9.0 of the Android Gradle plugin.
For more information, see TBD.
To determine what is calling BaseVariant.getApplicationIdTextResource, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
:app:compileDebugKotlin
SearchNsdFragmentDirections.kt
Unresolved reference: R
Unresolved reference: R
org.gradle.api.GradleException: Compilation error. See log for more details
Any idea about it?
I tried to revert gradle-wrapper properties and revert other libraries...
Solution: Its because you are missing the package name in a manifest file here:
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.yourname"
I clicked in Android Studio suggestion and it removed package name from Manifest. Now it works properly!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With