This is a quick repeatable bug report that affects SAB and RAB, maybe the other builders.
In a course this week, people created a test project called “Luke and Acts”. Some people, trying to save character space, called the project “Luke & Acts”. Everyone was able to build the app, but those with the ampersand would get “no book found” when they loaded the app. I remembered that “&” is a reserved character in Android path names, and this was now encoded in the folder structure of the project. We worked around the error by starting a fresh project without the &, because changing the app name in SAB doesn’t rename the folder.
It’s dangerous to create folder names based on user input without some validation. The App builders should probably not allow ANY reserved characters from Android/Win/iOS/Mac to be used in file and folder names, but apostrophe and & are the most likely candidates that people will use.
Here’s a good list of things that should be avoided.
Do not use any of these common illegal characters or symbols in your filenames or folders:
# pound
% percent
& ampersand
{ left curly bracket
} right curly bracket
\ back slash
< left angle bracket
> right angle bracket
* asterisk
? question mark
/ forward slash
$ dollar sign
! exclamation point
' single quotes
" double quotes
: colon
@ at sign
+ plus sign
` backtick
| pipe
= eq
Reproduction:
Create an App with “&” in the project name. Build and install the app on Android. The app will open and error as it can’t find the books.
~Matthew