Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android、Php、MySql don';行不通_Android_Google Cloud Messaging - Fatal编程技术网

android、Php、MySql don';行不通

android、Php、MySql don';行不通,android,google-cloud-messaging,Android,Google Cloud Messaging,大家好,我正在尝试构建一个新的推送通知应用程序,我遵循一个教程,因此我: 1-Myphp服务器上的Mysql数据库 2-使用Netbeans的php项目 3-使用googleplay Library的Android应用程序和使用eclipse的GCM 我不知道我是否应该做些什么,而不是在模拟器上运行应用程序,我应该运行php项目吗 请任何人帮助我,因为当我在模拟器上运行它时,它崩溃了,并出现了这些错误 }使用Google API作为仿真器系统映像,并将Google帐户添加到仿真器。请不要将错误

大家好,我正在尝试构建一个新的推送通知应用程序,我遵循一个教程,因此我: 1-Myphp服务器上的Mysql数据库 2-使用Netbeans的php项目 3-使用googleplay Library的Android应用程序和使用eclipse的GCM

我不知道我是否应该做些什么,而不是在模拟器上运行应用程序,我应该运行php项目吗

请任何人帮助我,因为当我在模拟器上运行它时,它崩溃了,并出现了这些错误


}

使用Google API作为仿真器系统映像,并将Google帐户添加到仿真器。

请不要将错误作为映像发布,尤其是剪切的错误。始终链接到您正在使用的教程。如果你不能根据一个教程让事情顺利进行,又不知道该做什么,那就找一个更好的教程。发布你的代码和主要活动行92…@helldawg13I编辑帖子。。。你可以在我贴的代码上找到第92行是你的第二行我这么做了,但同样的事情失败了
private boolean isGoogelPlayInstalled() {
   GoogleApiAvailability api = GoogleApiAvailability.getInstance();
   int resultCode = api.isGooglePlayServicesAvailable(this);
  if (resultCode != ConnectionResult.SUCCESS) {

      if (api.isUserResolvableError(resultCode)){

          api.getErrorDialog(this, resultCode, REQUEST_GOOGLE_PLAY_SERVICES);

     } else {
        Toast.makeText(getApplicationContext(),
              "Google Play Service is not installed",
              Toast.LENGTH_SHORT).show();
        finish();
     }
     return false;
  }
  return true;