Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/232.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
Java 如何在emulator上为所有api安装android market';s_Java_Android_Emulation_Google Play - Fatal编程技术网

Java 如何在emulator上为所有api安装android market';s

Java 如何在emulator上为所有api安装android market';s,java,android,emulation,google-play,Java,Android,Emulation,Google Play,如何在android emulator上安装android market和其他apk。我尝试了一些解决方案,但它们似乎不起作用,或者不清楚。Android市场不适用于模拟器。它只有在谷歌的许可下才能在硬件上发布。正如上面的人所说,它不可用,但您可以从文件浏览器中提取apk 我使用此方法在api 4和8上安装market: 如果您使用的是windows,请将“/”改为“\”,然后只需键入 “android”而不是“/android” 1)转到android sdk路径并创建一台新机器: *在终端中

如何在android emulator上安装android market和其他apk。我尝试了一些解决方案,但它们似乎不起作用,或者不清楚。

Android市场不适用于模拟器。它只有在谷歌的许可下才能在硬件上发布。

正如上面的人所说,它不可用,但您可以从文件浏览器中提取apk

我使用此方法在api 4和8上安装market:

如果您使用的是windows,请将“/”改为“\”,然后只需键入 “android”而不是“/android”

1)转到android sdk路径并创建一台新机器:
*在终端中键入以下内容:
cd“/home/.eclipse/android sdk/tools”
*那么这个
/安卓
*然后单击工具->管理AVD。。。
*创建一台新机器
2) 启动机器并设置分区大小
*转到以下路径:
cd“/home/.eclipse/android sdk/tools”
*打开机器(保持终端打开)
/仿真器@-分区大小96
3) 修改一些文件、根目录和安装应用程序
*转到以下路径:
cd“/home/.eclipse/android sdk/platform tools”
*拉取平台工具文件夹中的“build.prop”文件
./adb pull/system/build.prop
*删除此行:“ro.config.nocheckin=yes”并保存
*将分区装载到我们可以写入的位置
亚洲开发银行重新装载
*替换已编辑的文件
/adb推送build.prop/system/build.prop
*安装应用程序
/adb安装“/home//Emulator文件/GoogleServicesFramework.apk”
/adb安装“/home//Emulator文件/Gmail.apk”
/adb安装“/home//Emulator文件/Vending.apk”
4) 拔下电话
*转到以下路径:
cd“/home/.eclipse/android sdk/platform tools”
*mout系统文件
/adb外壳安装-o rw,重新安装-t yaffs2/dev/block/mtdblock03/system
*将su的脚本放入系统中
./adb push”/home//Emulator files/su”/system/xbin/su
*使系统文件夹可写
./adb壳牌chmod 06755/系统
/adb壳牌chmod 06755/system/xbin/su
*安装超级用户应用程序以管理权限
/adb安装superuser.apk
5) 如果应用程序未在市场上显示:
*转到emulator中的应用程序->管理应用程序
*单击google服务框架->强制停止并删除缓存
*单击市场->强制停止并删除数据+缓存
*重启设备

请不要主张侵犯StackOverflow的版权。我们不会强制执行其他人的版权。然而,去一些粗略的第三方网站下载二进制文件似乎是一件愚蠢的事情。这不是一个编程问题
1) go to android sdk path and create a new machine:
    * type this in terminal:
        cd "/home/<username>/.eclipse/android-sdk/tools"
    * then this  
        ./android
    * then click on Tools -> Manage AVDs...
    * create a new machine

2) start the machine and set the partition size
    * go to this path:
        cd "/home/<username>/.eclipse/android-sdk/tools"
    * open the machine (keep the terminal open)
        ./emulator @<machine name> -partition-size 96

3) modify some files, root and install apps
    * go to this path:
        cd "/home/<username>/.eclipse/android-sdk/platform-tools"
    * pull the 'build.prop' file in the platform-tools folder
        ./adb pull /system/build.prop
    * remove this line: 'ro.config.nocheckin=yes' and save
    * mount the partition to that we can write to it
        ./adb remount
    * replace the edited file
        ./adb push build.prop /system/build.prop
    * install the apps
        ./adb install "/home/<username>/Emulator files/GoogleServicesFramework.apk"
        ./adb install "/home/<username>/Emulator files/Gmail.apk"
        ./adb install "/home/<username>/Emulator files/Vending.apk"

4) root the phone
    * go to this path:
        cd "/home/<username>/.eclipse/android-sdk/platform-tools"   
    * mout system files
        ./adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system 
    * put script for su in system
        ./adb push "/home/<username>/Emulator files/su" /system/xbin/su
    * make system folder writeble
        ./adb shell chmod 06755 /system
        ./adb shell chmod 06755 /system/xbin/su
    * install super user app to manage permissions
        ./adb install superuser.apk 

5) if apps are not showing in the market:
    * go to applications -> manage applications in the emulator
    * click on google services framework -> force stop and delete cache 
    * click on market -> force stop and delete data + cache
    * restart device