Home » Android » java – What does `android.accounts.Account.type` reference?

java – What does `android.accounts.Account.type` reference?

Posted by: admin May 14, 2020 Leave a comment

Questions:

In the Google Play Developer console, I’m getting warnings in the Pre-Launch tests mentioning:

java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.accounts.Account.type' on a null object reference

The app never crashes and the test succeeds, but the warning is still there in details of the test. What is android.accounts.Account and how can I make sure it doesn’t have issues?

How to&Answers:

The same issue occurs with my pre-launch reports from google developer console. If you look closer into the log file provided, you will see that sometimes a test device is not set up correctly and throws this exception when setting up for a video to be taken instead of a screenshot (this feature was enabled in android 5.x). Dont worry about it. I do neglect these errors regularily.

Answer:

have you put permission in Manifest ?

<uses-permission android:name="android.permission.GET_ACCOUNTS" />