java.lang.NoSuchMethodError: in the logcat,but when i transfer the apk file to other devices then 80% of the users reported the app got crashed while just opening the app or opening an activity with on the app.This is driving me crazy i tested this on different eamulators and none of them got crashed.I just coudn't understand what the problem is please help. MY AndroidMaifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androgeekzz.pokemongo_bestguidetipsandtricks"> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Basics" /> <activity android:name=".Tips" /> <activity android:name=".Tricks" /> <activity android:name=".Bas_What" /> <activity android:name=".Bas_Downld" /> <activity android:name=".Bas_Pikatchu" /> <activity android:name=".Bas_PokeCapture" /> <activity android:name=".Bas_LVI5" /> <activity android:name=".Bas_GainXP_LVL_Up" /> <activity android:name=".Bas_All_Iteams" /> <activity android:name=".Bas_All_Places" /> <activity android:name=".Advanced" /> <activity android:name=".Adv_gainXP" /> <activity android:name=".Adv_1candies" /> <activity android:name=".Adv_2Evolution" /> <activity android:name=".Adv_3PowerUp" /> <activity android:name=".Adv_4FightAGym" /> <activity android:name=".Adv_5DefendGym" /> <activity android:name=".Adv_6LvlGym" /> <activity android:name=".Adv_7Type" /> <activity android:name=".Adv_8Egg" /> <activity android:name=".Tips_0Good" /> <activity android:name=".Tips_1Eevee" /> <activity android:name=".Tips_2EarnXP" /> <activity android:name=".Tips_3Find" /> <activity android:name=".Tips_4Nest" /> <activity android:name=".Adv_Nests" /> <activity android:name=".Resources"></activity> </application> Main Activity- package com.androgeekzz.pokemongo_bestguidetipsandtricks; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; public class MainActivity extends AppCompatActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); int times = prefs.getInt("ok_clicked", 0); if(times==0){ new AlertDialog.Builder(MainActivity.this) .setTitle("Hi there user") .setMessage("This app version right now is just 1.0 the later versions will be released soon with even more content,Images and in app video tutorials etc..and this app is completely ADD free so please do consider rating it. ") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putInt("ok_clicked", 1); editor.apply(); } }) .show(); } getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); } public void basicsOnclick(View view) { Intent i = new Intent(this,Basics.class); startActivity(i); } public void advanceOnclick(View view) { Intent i = new Intent(this,Advanced.class); startActivity(i); } public void tipsOnclick(View view) { Intent i = new Intent(this,Tips.class); startActivity(i); } public void tricksOnclick(View view) { Intent i = new Intent(this,Tricks.class); startActivity(i); } public void resourceLinksOnclick(View view) { Intent i = new Intent(this,Resources.class); startActivity(i); } public void aboutOnclick(View view) { new AlertDialog.Builder(MainActivity.this) .setTitle("About") .setMessage("App Name :Pokemon GO-Guide\nVersion :1.0 \nCreator :Prudhvi") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }) .show(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: this.finish(); return true; default: return super.onOptionsItemSelected(item); } } } LogCat(It had not crashed for this log cat)- at com.android.systemui.statusbar.SignalClusterView.apply(SignalClusterView.java:468)

Stack Overflow | Prudhvi Reddy | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    My android app is crashing in most devices

    Stack Overflow | 7 months ago | Prudhvi Reddy
    java.lang.NoSuchMethodError: in the logcat,but when i transfer the apk file to other devices then 80% of the users reported the app got crashed while just opening the app or opening an activity with on the app.This is driving me crazy i tested this on different eamulators and none of them got crashed.I just coudn't understand what the problem is please help. MY AndroidMaifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androgeekzz.pokemongo_bestguidetipsandtricks"> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Basics" /> <activity android:name=".Tips" /> <activity android:name=".Tricks" /> <activity android:name=".Bas_What" /> <activity android:name=".Bas_Downld" /> <activity android:name=".Bas_Pikatchu" /> <activity android:name=".Bas_PokeCapture" /> <activity android:name=".Bas_LVI5" /> <activity android:name=".Bas_GainXP_LVL_Up" /> <activity android:name=".Bas_All_Iteams" /> <activity android:name=".Bas_All_Places" /> <activity android:name=".Advanced" /> <activity android:name=".Adv_gainXP" /> <activity android:name=".Adv_1candies" /> <activity android:name=".Adv_2Evolution" /> <activity android:name=".Adv_3PowerUp" /> <activity android:name=".Adv_4FightAGym" /> <activity android:name=".Adv_5DefendGym" /> <activity android:name=".Adv_6LvlGym" /> <activity android:name=".Adv_7Type" /> <activity android:name=".Adv_8Egg" /> <activity android:name=".Tips_0Good" /> <activity android:name=".Tips_1Eevee" /> <activity android:name=".Tips_2EarnXP" /> <activity android:name=".Tips_3Find" /> <activity android:name=".Tips_4Nest" /> <activity android:name=".Adv_Nests" /> <activity android:name=".Resources"></activity> </application> Main Activity- package com.androgeekzz.pokemongo_bestguidetipsandtricks; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; public class MainActivity extends AppCompatActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); int times = prefs.getInt("ok_clicked", 0); if(times==0){ new AlertDialog.Builder(MainActivity.this) .setTitle("Hi there user") .setMessage("This app version right now is just 1.0 the later versions will be released soon with even more content,Images and in app video tutorials etc..and this app is completely ADD free so please do consider rating it. ") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putInt("ok_clicked", 1); editor.apply(); } }) .show(); } getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); } public void basicsOnclick(View view) { Intent i = new Intent(this,Basics.class); startActivity(i); } public void advanceOnclick(View view) { Intent i = new Intent(this,Advanced.class); startActivity(i); } public void tipsOnclick(View view) { Intent i = new Intent(this,Tips.class); startActivity(i); } public void tricksOnclick(View view) { Intent i = new Intent(this,Tricks.class); startActivity(i); } public void resourceLinksOnclick(View view) { Intent i = new Intent(this,Resources.class); startActivity(i); } public void aboutOnclick(View view) { new AlertDialog.Builder(MainActivity.this) .setTitle("About") .setMessage("App Name :Pokemon GO-Guide\nVersion :1.0 \nCreator :Prudhvi") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }) .show(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: this.finish(); return true; default: return super.onOptionsItemSelected(item); } } } LogCat(It had not crashed for this log cat)- at com.android.systemui.statusbar.SignalClusterView.apply(SignalClusterView.java:468)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      in the logcat,but when i transfer the apk file to other devices then 80% of the users reported the app got crashed while just opening the app or opening an activity with on the app.This is driving me crazy i tested this on different eamulators and none of them got crashed.I just coudn't understand what the problem is please help. MY AndroidMaifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androgeekzz.pokemongo_bestguidetipsandtricks"> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Basics" /> <activity android:name=".Tips" /> <activity android:name=".Tricks" /> <activity android:name=".Bas_What" /> <activity android:name=".Bas_Downld" /> <activity android:name=".Bas_Pikatchu" /> <activity android:name=".Bas_PokeCapture" /> <activity android:name=".Bas_LVI5" /> <activity android:name=".Bas_GainXP_LVL_Up" /> <activity android:name=".Bas_All_Iteams" /> <activity android:name=".Bas_All_Places" /> <activity android:name=".Advanced" /> <activity android:name=".Adv_gainXP" /> <activity android:name=".Adv_1candies" /> <activity android:name=".Adv_2Evolution" /> <activity android:name=".Adv_3PowerUp" /> <activity android:name=".Adv_4FightAGym" /> <activity android:name=".Adv_5DefendGym" /> <activity android:name=".Adv_6LvlGym" /> <activity android:name=".Adv_7Type" /> <activity android:name=".Adv_8Egg" /> <activity android:name=".Tips_0Good" /> <activity android:name=".Tips_1Eevee" /> <activity android:name=".Tips_2EarnXP" /> <activity android:name=".Tips_3Find" /> <activity android:name=".Tips_4Nest" /> <activity android:name=".Adv_Nests" /> <activity android:name=".Resources"></activity> </application> Main Activity- package com.androgeekzz.pokemongo_bestguidetipsandtricks; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; public class MainActivity extends AppCompatActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); int times = prefs.getInt("ok_clicked", 0); if(times==0){ new AlertDialog.Builder(MainActivity.this) .setTitle("Hi there user") .setMessage("This app version right now is just 1.0 the later versions will be released soon with even more content,Images and in app video tutorials etc..and this app is completely ADD free so please do consider rating it. ") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putInt("ok_clicked", 1); editor.apply(); } }) .show(); } getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); } public void basicsOnclick(View view) { Intent i = new Intent(this,Basics.class); startActivity(i); } public void advanceOnclick(View view) { Intent i = new Intent(this,Advanced.class); startActivity(i); } public void tipsOnclick(View view) { Intent i = new Intent(this,Tips.class); startActivity(i); } public void tricksOnclick(View view) { Intent i = new Intent(this,Tricks.class); startActivity(i); } public void resourceLinksOnclick(View view) { Intent i = new Intent(this,Resources.class); startActivity(i); } public void aboutOnclick(View view) { new AlertDialog.Builder(MainActivity.this) .setTitle("About") .setMessage("App Name :Pokemon GO-Guide\nVersion :1.0 \nCreator :Prudhvi") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }) .show(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: this.finish(); return true; default: return super.onOptionsItemSelected(item); } } } LogCat(It had not crashed for this log cat)- at com.android.systemui.statusbar.SignalClusterView.apply(SignalClusterView.java:468)

      at com.android.systemui.statusbar.policy.NetworkControllerImpl.refreshViews()
    2. com.android.systemui
      NetworkControllerImpl.onReceive
      1. com.android.systemui.statusbar.policy.NetworkControllerImpl.refreshViews(NetworkControllerImpl.java:1986)
      2. com.android.systemui.statusbar.policy.NetworkControllerImpl.refreshViews(NetworkControllerImpl.java:1679)
      3. com.android.systemui.statusbar.policy.NetworkControllerImpl.onReceive(NetworkControllerImpl.java:643)
      3 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:895)
      2. android.os.Handler.handleCallback(Handler.java:810)
      3. android.os.Handler.dispatchMessage(Handler.java:99)
      4. android.os.Looper.loop(Looper.java:189)
      5. android.app.ActivityThread.main(ActivityThread.java:5529)
      5 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)
      2 frames
    6. XposedBridge
      XposedBridge.main
      1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
      1 frame