Skip to main content

All Questions

0 votes
0 answers
31 views

HI im new to android studio im able to build my app successfully but it crashes in emulater

when i build my app the following task output : Task :app:compileDebugJavaWithJavac Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: ...
Saleh Abdulhadi's user avatar
1 vote
0 answers
344 views

Exception in plugin Android

I got this fatal error , when I was trying to import opencv module to my project. Even Gradle sync is finished successfully, I have also tried invalidate cache and restart but it does not solved ...
Anushka yadav's user avatar
0 votes
0 answers
227 views

FATAL EXCEPTION, happening in signed APK (Application closes after opening, works in debug mode)

The app is works very well in debug mode. But in signed apk and after uploading in playstore, the app is closed automatically. I have tried: Rebuild Clean Invalidate and restart Added proguard of ...
Angel's user avatar
  • 115
1 vote
0 answers
492 views

IWindowSession.java NullPointerException: Attempt to read from field 'int android.content.pm.ApplicationInfo.flags' on a null object reference

Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'int android.content.pm.ApplicationInfo.flags' on a null object reference at android.os.Parcel.createException(Parcel.java:...
miral's user avatar
  • 131
-5 votes
2 answers
487 views

Fatal Exception: java.lang.NullPointerException error occured randomly while using application [duplicate]

Sometime application having crash issue and my crash log show me Error like this : Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v4.util....
Ravi Makvana's user avatar
  • 2,882
1 vote
1 answer
8k views

NullPointerException: Attempt to invoke virtual method enableForegroundDispatch(...) on a null object reference

I'm developing a sample Android app that has two activities A log in page An activity that writes NDEF message to an NFC tag. Upon tapping the log in button, I get the NullPointerException. Here is ...
Sivaprasanna Sethuraman's user avatar
0 votes
1 answer
471 views

Implementing Marquee HorizontalScrollView: FATAL EXCEPTION: main Unable to start activity java.lang.NullPointerException

I'm attempting to implement a Marquee HorizontalScrollView however I'm getting an error message stating FATAL EXCEPTION: main Unable to start activity java.lang.NullPointerException at line 55: s....
Jane Cosack's user avatar
0 votes
2 answers
135 views

fatal error using android shared preference

I am working on my first android project and I am using android studio. The project was running fine on my test device and then I chose to clean project and now the app won't run, the exception that ...
Lonergan6275's user avatar
  • 1,988
-1 votes
1 answer
81 views

NullPointerException / NPE Caused by addTextChangedListener

I'm attempting to set a listener to detect if the text in my mAttendeesList has changed using the following: EditEventView.mAttendeesList.addTextChangedListener(mViewListener); However ...
Steven Schultz's user avatar
0 votes
1 answer
120 views

Android / Java - MultiAutoCompleteTextView returns null - Causes FATAL NullPointerException

I have a Calendar within my Android app which implements MultiAutoCompleteTextView: MultiAutoCompleteTextView mAttendeesList; ... mAttendeesListView = (LinearLayout) view.findViewById(R.id....
Steven Schultz's user avatar
0 votes
2 answers
304 views

Confused about FATAL EXCEPTION:main caused by NullPointerException

I am super confused right now! I am making my first android app and when I just had one activity, I had no errors. But after I added a second activity I get a FATAL EXCEPTION:main. Here is my ...
dbignasty's user avatar
0 votes
1 answer
3k views

Android, threadid=1: thread exiting with uncaught exception (group=0xa4db4b20)

I am writing simple code for playing a mp3 on android using android.media.MediaPlayer but I am getting this error thread exiting with uncaught exception (group=0xa4db4b20) and NPE This is my ...
adarsh's user avatar
  • 356
2 votes
1 answer
2k views

Turn a fatal crash into a non-fatal crashlytics report

The code in question: final GenericAsyncTask task = new GenericAsyncTask(); task.background = new Runnable() { public void run() { HttpClient httpclient = new ...
Jacksonkr's user avatar
  • 32.1k
2 votes
0 answers
76 views

Unexplained json .has("key") fatal exception, from one day to another

This weekend something strange happened on my app. Before Thursday I had been using this instruction without problems: if(!jsonL2.has("counters")) By Sunday, the app was suffering a fatal exception ...
Josh's user avatar
  • 6,333
0 votes
2 answers
2k views

Unable to start activity ComponentInfo{…}: java.lang.NullPointerException

I got this problem Unable to start activity ComponentInfo{…}: java.lang.NullPointerException but i don't know where. I'm a beginner in androïd and i can't get out of this error.. Logcat: 05-29 02:37:...
user3264208's user avatar

15 30 50 per page