google-play-services_lib添加不成功的解决方案

 使用Google Map API v2进行地图开发时需要添加google-play-services_lib,在安装Android SDK后google-play-services_lib默认在ADT中的SDK目录中,此时的google-play-services_lib没有生成project,无法添加,需要生成project,整体添加步骤如下:

    ①File->New->Project->Android Project from Existing Code->Browse->Android SDK->extras->google->google_play_services:

                  google-play-services_lib添加不成功的解决方案

                  google-play-services_lib添加不成功的解决方案
    ②生成project文件之后, File->Import->Android->Existing Android Code Into Workspace->Browse->Android SDK->extras->google->google_play_services->libproject->google-play-services_lib;

    ③Properties->Android添加google-play-services_lib;

                         google-play-services_lib添加不成功的解决方案                 

                       google-play-services_lib添加不成功的解决方案

    ④Apply之后,重复右键操作出现如下错误:

                                google-play-services_lib添加不成功的解决方案
     原因在于新生成的project仍在默认Android SDK目录中,参照appcompat_v7兼容包可以发现google-play-services_lib与项目不在同一目录中,此时只需要将google-play-services_lib拷贝至项目所在目录并重复步骤②③即可解决(重复添加时选择与项目在同一目录的google-play-services_lib)。

                                google-play-services_lib添加不成功的解决方案

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
static int fread_frame_rate(play_para_t *p_para) { int average_count; if (p_para->frame_count < 0) { p_para->frame_count = 0; p_para->mread_frame_rate.last_frame_times = 0; } if (p_para->mread_frame_rate.last_frame_times == 0) { p_para->mread_frame_rate.last_frame_times = av_gettime(); p_para->mread_frame_rate.in_count = 0; } int normal_read_framerate = am_getconfig_int_def("media.amplayer.normal_read_framerate", 50); if (av_gettime() - p_para->mread_frame_rate.last_frame_times >= 200000) { p_para->mread_frame_rate.in_count++; p_para->mread_frame_rate.last_frame_times = av_gettime(); int in_count = p_para->mread_frame_rate.in_count; if (in_count <= READ_FRAME_RATE_TIMES) { p_para->mread_frame_rate.mread_frame_info[in_count-1].read_frame_count = p_para->frame_count; p_para->mread_frame_rate.mread_frame_info[in_count-1].read_frame_time = av_gettime(); } else { int i; for (i = 0; i < (READ_FRAME_RATE_TIMES-1); i++) { p_para->mread_frame_rate.mread_frame_info[i].read_frame_count = p_para->mread_frame_rate.mread_frame_info[i+1].read_frame_count; p_para->mread_frame_rate.mread_frame_info[i].read_frame_time = p_para->mread_frame_rate.mread_frame_info[i+1].read_frame_time; } p_para->mread_frame_rate.mread_frame_info[i].read_frame_count = p_para->frame_count; p_para->mread_frame_rate.mread_frame_info[i].read_frame_time = av_gettime(); } if (in_count < READ_FRAME_RATE_TIMES) { average_count = normal_read_framerate; } else { average_count = get_average_count(p_para->mread_frame_rate.mread_frame_info); } p_para->cur_frame_rate = average_count; } else { if (p_para->mread_frame_rate.in_count < READ_FRAME_RATE_TIMES) { p_para->cur_frame_rate = normal_read_framerate; } average_count = p_para->cur_frame_rate; } return average_count; }
最新发布
06-14

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值