Hey guys, I recently had issues with getaccount only returning NULL.
The answer I found on another page was:
Basically since you target API level 25 you are expected to ask for the GET_ACCOUNTS permission at runtime. This is kind of explained at https://docs.clover.com/clover-platform/docs/setting-up-an-android-emulator but it's not totally clear.
I recommend targeting an even older API level such as 22 or less otherwise you will need to write a bunch of code to prompt the user for permission just to get it working on the emulator. On real Clover devices we auto-grant the permissions that would otherwise require runtime granting so you only have to do this on the emulator if you target 23 or higher.
I tried changing my target API level to 22, but I'm having app installation issues now onto my emulator.
Installation did not succeed. The application could not be installed. Installation failed due to: '-26'
I'm running the app on a station 2018 emulator (API 25). I'm guessing that it's because the target SDK is now 22 vs. the emulator's 25. Does anyone have any solutions? Should I change my emulator's API to 22?