android - AppMeasurementReceiver not registered/enabled and AppMeasurementService not registered not enabled -


**hey guys, know might question might have been asked before, need help. keep getting 'app_measurement_receiver' not registered/enabled, 'app_measurement_service' not enabled. cant seem login app. might problem guys , how may go it? **

08-19 21:13:50.826 3019-3255/? e/fa: 'appmeasurementreceiver' not registered/enabled 08-19 21:13:50.827 3019-3255/? e/fa: 'appmeasurementservice' not registered/enabled 08-19 21:13:50.827 3019-3255/? e/fa: uploading not possible. app measurement disabled 

** android manifest file**

<manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.hushtagstudios.towme">      <!-- auto-complete email text field in login form user's emails -->     <uses-permission android:name="android.permission.get_accounts" />     <uses-permission android:name="android.permission.read_profile" />     <uses-permission android:name="android.permission.read_contacts" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:supportsrtl="true">         <activity             android:name=".splashactivity"             android:theme="@android:style/theme.notitlebar.fullscreen">             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity             android:name=".loginactivity"             android:label="@string/title_activity_login"             android:parentactivityname=".splashactivity"             android:theme="@style/apptheme">             <meta-data                 android:name="android.support.parent_activity"                 android:value="com.hushtagstudios.towme.splashactivity" />         </activity>         <activity             android:name=".register"             android:label="@string/register"             android:parentactivityname=".loginactivity"             android:theme="@style/apptheme">             <meta-data                 android:name="android.support.parent_activity"                 android:value="com.hushtagstudios.towme.loginactivity" />             </activity>         <activity             android:name=".mainactivity"             android:label="@string/let_us_help_activity_title"             android:theme="@style/myappstyletheme" />         <activity             android:name=".paymentnav"             android:label="@string/payment"             android:parentactivityname=".mainactivity"             android:theme="@style/apptheme" />         <activity             android:name=".historynav"             android:label="@string/menu_history"             android:parentactivityname=".mainactivity"             android:theme="@style/apptheme" />         <activity             android:name=".notificationnav"             android:label="@string/menu_notifications"             android:parentactivityname=".mainactivity"             android:theme="@style/apptheme" />         <activity             android:name=".sharenav"             android:label="@string/share"             android:parentactivityname=".mainactivity"             android:theme="@style/apptheme" />         <activity             android:name=".helpnav"             android:label="@string/how_can_we_assist_you"             android:parentactivityname=".mainactivity"             android:theme="@style/apptheme" />         <activity             android:name=".settingsnav"             android:label="@string/menu_settings"             android:parentactivityname=".mainactivity"             android:theme="@style/apptheme" />         <activity             android:name=".aboutnav"             android:label="@string/menu_about"             android:parentactivityname=".mainactivity"             android:theme="@style/apptheme" />         <activity             android:name=".addpaymentmethod"             android:label="@string/add_payment_method"             android:parentactivityname=".paymentnav"             android:theme="@style/apptheme" />         <activity             android:name=".creditcardnav"             android:label="@string/add_payment_method"             android:parentactivityname=".addpaymentmethod"             android:theme="@style/apptheme" />         <activity             android:name=".triphelp"             android:label="@string/select_trip"             android:parentactivityname=".helpnav"             android:theme="@style/apptheme" />         <activity             android:name=".accountpaymentoptions"             android:label="@string/account_and_payments"             android:parentactivityname=".helpnav"             android:theme="@style/apptheme" />         <activity             android:name=".howtousetowme"             android:label="@string/how_to_use_tow_me"             android:parentactivityname=".helpnav"             android:theme="@style/apptheme" />         <activity             android:name=".signinguphelp"             android:label="@string/signing_up_to_tow_me"             android:parentactivityname=".helpnav"             android:theme="@style/apptheme" />         <activity             android:name=".morehelp"             android:label="@string/more"             android:parentactivityname=".helpnav"             android:theme="@style/apptheme" />         <activity             android:name=".cantsignin"             android:label="@string/menu_user_accountandpayment_issue1"             android:parentactivityname=".accountpaymentoptions"             android:theme="@style/apptheme" />         <activity             android:name=".cantupdatemobile"             android:label="@string/menu_user_accountandpayment_issue2"             android:parentactivityname=".accountpaymentoptions"             android:theme="@style/apptheme" />         <activity             android:name=".paymentoptions"             android:label="@string/menu_user_accountandpayment_issue3"             android:parentactivityname=".accountpaymentoptions"             android:theme="@style/apptheme" />         <activity             android:name=".accountpaymentsettingshelp"             android:label="@string/menu_user_accountandpayment_issue4"             android:parentactivityname=".accountpaymentoptions"             android:theme="@style/apptheme" />         <activity             android:name=".promoscreditshelp"             android:label="@string/menu_user_accountandpayment_issue5"             android:parentactivityname=".accountpaymentoptions"             android:theme="@style/apptheme" />         <activity             android:name=".uknownchargehelp"             android:label="@string/menu_user_accountandpayment_issue6"             android:parentactivityname=".accountpaymentoptions"             android:theme="@style/apptheme" />         <activity             android:name=".cantsigninissue1"             android:label="@string/menu_user_cant_sign_in_issue1"             android:parentactivityname=".cantsignin"             android:theme="@style/apptheme" />         <activity             android:name=".cantsigninissue2"             android:label="@string/menu_user_cant_sign_in_issue2"             android:parentactivityname=".cantsignin"             android:theme="@style/apptheme" />         <activity             android:name=".cantsignissue4"             android:label="@string/mennu_user_cant_sign_in_issue4"             android:parentactivityname=".cantsignin"             android:theme="@style/apptheme" />         <activity             android:name=".cantsigninissue3"             android:label="@string/menu_user_cant_sign_in_issue3"             android:parentactivityname=".cantsignin"             android:theme="@style/apptheme" />         <activity             android:name=".cantsigninissue5"             android:label="@string/mennu_user_cant_sign_in_issue5"             android:parentactivityname=".cantsignin"             android:theme="@style/apptheme" />         <activity             android:name=".cantsigninissue6"             android:label="@string/mennu_user_cant_sign_in_issue6"             android:parentactivityname=".cantsignin"             android:theme="@style/apptheme" />     </application>  </manifest> 

mainactivity.class file

package com.hushtagstudios.towme;  import android.content.intent; import android.support.annotation.nonnull; import android.support.design.widget.navigationview; import android.support.v4.app.fragmentmanager; import android.support.v4.view.gravitycompat; import android.support.v4.widget.drawerlayout; import android.support.v7.app.actionbar; import android.support.v7.app.actionbardrawertoggle; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.support.v7.widget.toolbar; import android.view.menuitem; import android.view.view;  import at.markushi.ui.circlebutton;  public class mainactivity extends appcompatactivity implements navigationview.onnavigationitemselectedlistener, view.onclicklistener {      private drawerlayout mdrawerlayout;     private actionbardrawertoggle mtoggle;     private toolbar mtoolbar;     private navigationview navigationview = null;     private circlebutton cbbattery;     private circlebutton cbacc;     private circlebutton cbflattire;     private circlebutton cbfuel;     private circlebutton cbmechanical;     private circlebutton cbinsurance;     private circlebutton cblocked;     private circlebutton cbstuckinditch;        @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_main);            mtoolbar = (toolbar)findviewbyid(r.id.nav_action);         setsupportactionbar(mtoolbar);          mdrawerlayout = (drawerlayout)findviewbyid(r.id.mdrawerlayout);         mtoggle = new actionbardrawertoggle(this, mdrawerlayout, r.string.navigation_drawer_open, r.string.navigation_drawer_close);          mdrawerlayout.setdrawerlistener(mtoggle);         mtoggle.syncstate();          getsupportactionbar().setdisplayhomeasupenabled(true);           navigationview = (navigationview)findviewbyid(r.id.nav_view);          navigationview.setnavigationitemselectedlistener(this);          cbbattery = (circlebutton)findviewbyid(r.id.cbbattery);         cbbattery.setonclicklistener(this);         cbacc = (circlebutton)findviewbyid(r.id.cbacc);         cbacc.setonclicklistener(this);         cbflattire = (circlebutton)findviewbyid(r.id.cbflattire);         cbflattire.setonclicklistener(this);         cbfuel = (circlebutton)findviewbyid(r.id.cbfuel);         cbfuel.setonclicklistener(this);         cbinsurance =(circlebutton)findviewbyid(r.id.cbinsurance);         cbinsurance.setonclicklistener(this);         cblocked = (circlebutton)findviewbyid(r.id.cblocked);         cblocked.setonclicklistener(this);         cbmechanical = (circlebutton)findviewbyid(r.id.cbmechanical);         cbmechanical.setonclicklistener(this);         cbstuckinditch = (circlebutton)findviewbyid(r.id.cbstuckinditch);         cbstuckinditch.setonclicklistener(this);       }     @override     public void onbackpressed() {         drawerlayout drawer = (drawerlayout) findviewbyid(r.id.mdrawerlayout);         if (drawer.isdraweropen(gravitycompat.start)) {             drawer.closedrawer(gravitycompat.start);         } else {             super.onbackpressed();         }     }       @override     public  boolean onoptionsitemselected(menuitem item){          if (mtoggle.onoptionsitemselected(item)){             return true;         }          return super.onoptionsitemselected(item);      }     @suppresswarnings("statementswithemptybody")     @override     public boolean onnavigationitemselected(menuitem item) {          int id = item.getitemid();          if (id == r.id.nav_payment) {              startactivity(new intent(mainactivity.this, paymentnav.class));          } else if (id == r.id.nav_history) {              startactivity(new intent(mainactivity.this, historynav.class));          } else if (id == r.id.nav_notifications) {             startactivity(new intent(mainactivity.this, notificationnav.class));          } else if (id == r.id.nav_share) {             startactivity(new intent(mainactivity.this, sharenav.class));           } else if (id == r.id.nav_help) {             startactivity(new intent(mainactivity.this, helpnav.class));           } else if (id == r.id.nav_settings) {             startactivity(new intent(mainactivity.this, settingsnav.class));           } else if (id == r.id.nav_about) {             startactivity(new intent(mainactivity.this, aboutnav.class));           } else if (id == r.id.nav_logout) {             startactivity(new intent(mainactivity.this, loginactivity.class));          }          drawerlayout drawer = (drawerlayout) findviewbyid(r.id.mdrawerlayout);         drawer.closedrawer(gravitycompat.start);         return true;     }      @override     public void onclick(view v) {         switch (v.getid()){             case r.id.cbbattery:                 break;              case r.id.cbacc:                 break;              case r.id.cbflattire:                 break;              case r.id.cbfuel:                 break;              case r.id.cbinsurance:                 break;              case r.id.cblocked:                 break;              case r.id.cbmechanical:                 break;              case r.id.cbstuckinditch:                 break;         }      } } 

** loginactivity.class file **

package com.hushtagstudios.towme;  import android.content.intent; import android.support.annotation.nonnull; import android.support.design.widget.navigationview; import android.support.v4.app.fragmentmanager; import android.support.v4.view.gravitycompat; import android.support.v4.widget.drawerlayout; import android.support.v7.app.actionbar; import android.support.v7.app.actionbardrawertoggle; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.support.v7.widget.toolbar; import android.view.menuitem; import android.view.view;  import at.markushi.ui.circlebutton;  public class mainactivity extends appcompatactivity implements navigationview.onnavigationitemselectedlistener, view.onclicklistener {      private drawerlayout mdrawerlayout;     private actionbardrawertoggle mtoggle;     private toolbar mtoolbar;     private navigationview navigationview = null;     private circlebutton cbbattery;     private circlebutton cbacc;     private circlebutton cbflattire;     private circlebutton cbfuel;     private circlebutton cbmechanical;     private circlebutton cbinsurance;     private circlebutton cblocked;     private circlebutton cbstuckinditch;        @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_main);            mtoolbar = (toolbar)findviewbyid(r.id.nav_action);         setsupportactionbar(mtoolbar);          mdrawerlayout = (drawerlayout)findviewbyid(r.id.mdrawerlayout);         mtoggle = new actionbardrawertoggle(this, mdrawerlayout, r.string.navigation_drawer_open, r.string.navigation_drawer_close);          mdrawerlayout.setdrawerlistener(mtoggle);         mtoggle.syncstate();          getsupportactionbar().setdisplayhomeasupenabled(true);           navigationview = (navigationview)findviewbyid(r.id.nav_view);          navigationview.setnavigationitemselectedlistener(this);          cbbattery = (circlebutton)findviewbyid(r.id.cbbattery);         cbbattery.setonclicklistener(this);         cbacc = (circlebutton)findviewbyid(r.id.cbacc);         cbacc.setonclicklistener(this);         cbflattire = (circlebutton)findviewbyid(r.id.cbflattire);         cbflattire.setonclicklistener(this);         cbfuel = (circlebutton)findviewbyid(r.id.cbfuel);         cbfuel.setonclicklistener(this);         cbinsurance =(circlebutton)findviewbyid(r.id.cbinsurance);         cbinsurance.setonclicklistener(this);         cblocked = (circlebutton)findviewbyid(r.id.cblocked);         cblocked.setonclicklistener(this);         cbmechanical = (circlebutton)findviewbyid(r.id.cbmechanical);         cbmechanical.setonclicklistener(this);         cbstuckinditch = (circlebutton)findviewbyid(r.id.cbstuckinditch);         cbstuckinditch.setonclicklistener(this);       }     @override     public void onbackpressed() {         drawerlayout drawer = (drawerlayout) findviewbyid(r.id.mdrawerlayout);         if (drawer.isdraweropen(gravitycompat.start)) {             drawer.closedrawer(gravitycompat.start);         } else {             super.onbackpressed();         }     }       @override     public  boolean onoptionsitemselected(menuitem item){          if (mtoggle.onoptionsitemselected(item)){             return true;         }          return super.onoptionsitemselected(item);      }     @suppresswarnings("statementswithemptybody")     @override     public boolean onnavigationitemselected(menuitem item) {          int id = item.getitemid();          if (id == r.id.nav_payment) {              startactivity(new intent(mainactivity.this, paymentnav.class));          } else if (id == r.id.nav_history) {              startactivity(new intent(mainactivity.this, historynav.class));          } else if (id == r.id.nav_notifications) {             startactivity(new intent(mainactivity.this, notificationnav.class));          } else if (id == r.id.nav_share) {             startactivity(new intent(mainactivity.this, sharenav.class));           } else if (id == r.id.nav_help) {             startactivity(new intent(mainactivity.this, helpnav.class));           } else if (id == r.id.nav_settings) {             startactivity(new intent(mainactivity.this, settingsnav.class));           } else if (id == r.id.nav_about) {             startactivity(new intent(mainactivity.this, aboutnav.class));           } else if (id == r.id.nav_logout) {             startactivity(new intent(mainactivity.this, loginactivity.class));          }          drawerlayout drawer = (drawerlayout) findviewbyid(r.id.mdrawerlayout);         drawer.closedrawer(gravitycompat.start);         return true;     }      @override     public void onclick(view v) {         switch (v.getid()){             case r.id.cbbattery:                 break;              case r.id.cbacc:                 break;              case r.id.cbflattire:                 break;              case r.id.cbfuel:                 break;              case r.id.cbinsurance:                 break;              case r.id.cblocked:                 break;              case r.id.cbmechanical:                 break;              case r.id.cbstuckinditch:                 break;         }      } } 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -