java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by bailibaili
, 1 year ago
Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
via GitHub by adu4862
, 8 months ago
Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
via GitHub by gergderkson
, 1 year ago
Unable to create application com.tns.NativeScriptApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
via GitHub by rajujin1
, 7 months ago
Unable to create application com.parse.starter.StarterApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by Matthias Loibl
, 1 year ago
Unable to create application com.activeandroid.app.Application: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.reflect.Field.getType()' on a null object reference
via GitHub by metalmatze
, 2 years ago
Unable to create application com.activeandroid.app.Application: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.reflect.Field.getType()' on a null object reference
java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
at android.util.Base64.decode(Base64.java:118)
at com.baoyz.treasure.SimpleConverterFactory$2.convert(SimpleConverterFactory.java:63)
at com.baoyz.treasure.SimpleConverterFactory$2.convert(SimpleConverterFactory.java:59)
at com.baoyz.treasure.SimplePreferences__Treasure.getPerson(SimplePreferences__Treasure.java:70)
at com.baoyz.treasure.MyApp.onCreate(MyApp.java:24)
at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:369)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

Users with the same issue

5 times, 1 year ago
13 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.