"Error: identifier expected" when trying to compile a project with videos in res / raw

1

I'm making an app just to manage videos that are already inside the application inside the res / raw folder, but when I'm going to compile without calling the videos, it gives the errors:

  

Error: identifier expected

and

  

Error: illegal start of type

    
asked by anonymous 08.03.2016 / 17:54

1 answer

1

The problem is that the names of your files start with number.

Since the Android SDK uses filenames to create matching variables in the R.java file, if you use a name other than a Valid Java identifier , R.java does not compile. The same goes for images.

Try changing the video names for eg video_1.mp4 , video_2.mp4 etc.

    
10.03.2016 / 04:40