perawallet / pera-wallet

Source code for Pera Wallet, simply the best Algorand wallet.
https://perawallet.app
Other
178 stars 62 forks source link

Unresolved reference issue with generated Directions classes #29

Closed jeremyv3 closed 2 years ago

jeremyv3 commented 2 years ago

Ran into an issue where android studio was throwing an unresolved reference for generated Direction classes. It would only throw the error after opening the file and then it noticed the reference issue. If any of the files were not opened it would ignore it and allow build.

Example AssetDetailFragment One of the failed imports: com.algorand.android.ui.assetdetail.AssetDetailFragmentDirections.Companion.actionAccountsFragmentToSendInfoFragment

Made a commit and pull request to fix the issue. FIX: I needed to add this line in the app build.gradle file in sourceSets getByName("main").java.srcDirs("build/generated/source/navigation-args")

Basitnajar commented 1 year ago

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"

hotellinawebmaster commented 1 year ago

Thanks Basitnajar