deniscerri / ytdlnis

Android Video/Audio Downloader app using yt-dlp
GNU General Public License v3.0
3.79k stars 130 forks source link

[BUG] [ksp] C:/Users/*/AndroidStudioProjects/ytdlnis/app/src/main/java/com/ytdl/videodownloader/database/DBManager.kt:62: Schema '1.json' required for migration was not found at the schema out folder: C:\Users\*\AndroidStudioProjects\ytdlnis\app\schemas\com.ytdl.videodownloader.database.DBManager. Cannot generate auto migrations. #474

Closed hamza0786 closed 5 months ago

hamza0786 commented 5 months ago

Hi! after replacing the package name getting this error:

[ksp] C:/Users//AndroidStudioProjects/ytdlnis/app/src/main/java/com/ytdl/videodownloader/database/DBManager.kt:62: Schema '1.json' required for migration was not found at the schema out folder: C:\Users\\AndroidStudioProjects\ytdlnis\app\schemas\com.ytdl.videodownloader.database.DBManager. Cannot generate auto migrations.

zaednasr commented 5 months ago

Go to build gradle and see the reference of room database

hamza0786 commented 5 months ago

Go to build gradle and see the reference of room database

this is in build.gradle file: ksp { arg("room.schemaLocation", "$projectDir/schemas") }

zaednasr commented 5 months ago

What about the file structure It might still have the old package name

hamza0786 commented 5 months ago

What about the file structure It might still have the old package name

where to find it?

hamza0786 commented 5 months ago

i have already change the package name in file directory by compact middle package

zaednasr commented 5 months ago

image image

hamza0786 commented 5 months ago

yes i have changed these also.

hamza0786 commented 5 months ago

so, no solution for this?

zaednasr commented 5 months ago

https://github.com/deniscerri/ytdlnis/commit/d7819aca98f847ea2201791bcae80370c059c959

Look at this commit. I had changed the package from ytdlnis to ytdl

hamza0786 commented 5 months ago

d7819ac

Look at this commit. I had changed the package from ytdlnis to ytdl

after i changed it to this: com.techinfo.ytdl

again same error

hamza0786 commented 5 months ago

can you plz change it in android studio to see if you face the same issue or not.

zaednasr commented 5 months ago

it all has to do with namespaces and file structure. There might be something you missed. Or maybe clear android studio caches.

image look at this for example.

hamza0786 commented 5 months ago

ok.thats the issue i did not change the package name in schemas folder.now its working perfectly.thanks for helping out...