Help with DFPlayerMini

I am going round and round and not clearing this. I have installed the DFPlayer Mini MP3 library from Makuna but I can't get any code to compile.

I keep getting:

Invalid library found in C:\Users\david\OneDrive\Documents\Arduino\libraries\DFRobotDFPlayerMini.h: no headers files (.h) found in C:\Users\david\OneDrive\Documents\Arduino\libraries\DFRobotDFPlayerMini.h

The .h looks fine to me but I am a newby to C (Long term Smalltalk developer).

Can anyone explain what I am doing wrong?

That is an odd error, how did you install this library? It almost seems as if it thinks C:\Users\david\OneDrive\Documents\Arduino\libraries\DFRobotDFPlayerMini.h is a directory.

Can you share your code please?

I'm guessing it is a directory. There's nothing (other than common sense) to prevent you from naming a directory DFRobotDFPlayerMini.h.

That seems to have been the problem. Also, the file inside was called DFRobotDFPlayerMini.h.ino. I took the .ino off and it has compiled so far. I will come back fully when it is running (fingers crossed).

LongHairedDavid:
That seems to have been the problem. Also, the file inside was called DFRobotDFPlayerMini.h.ino. I took the .ino off and it has compiled so far. I will come back fully when it is running (fingers crossed).

I think the bigger issue is how you installed it. I personally would delete that folder, and install the library correctly.
https://www.arduino.cc/en/guide/libraries