diff --git a/程序开发/安卓开发/Android Studio.md b/程序开发/安卓开发/Android Studio.md index c282ce9..d46d254 100644 --- a/程序开发/安卓开发/Android Studio.md +++ b/程序开发/安卓开发/Android Studio.md @@ -64,3 +64,42 @@ SDK - proguard-rules.pro - 代码混淆规则 + +# 调试 + +## 第三方模拟器 + +Android Studio如何连接 +1,首先先把第三方模拟器下载好,并打开。 +2,在控制台根据自己下载的模拟器输入以下相对应的命令: + 夜神模拟器:adb connect 127.0.0.1:62001 + 雷电模拟器:adb connect 127.0.0.1:5555 + 逍遥安卓模拟器: adb connect 127.0.0.1:21503 + 天天模拟器:adb connect 127.0.0.1:6555 + 海马玩模拟器 :adb connect 127.0.0.1:53001 + 网易MUMU模拟器:adb connect 127.0.0.1:7555 + +# 问题 + +中文乱码 + +- 文件 studio64.exe.vmoptions + - 添加 `-Dfile.encoding=UTF-8` + +# SDK + +## 37 + +```ini +账号:pxgj +密码:eBotr3VgY/v$ flavor.manifestPlaceholders = [IFLYTEK_CHANNEL: name] + } + + //程序在编译的时候会检查lint,有任何错误提示会停止build,我们可以关闭这个开关 + lintOptions { + abortOnError false + //即使报错也不会停止打包 + checkReleaseBuilds false + //打包release版本的时候进行检测 + } + +} + +dependencies { + + //声明测试用例库 + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' +} + + +``` + +## Build Varient + +为一个项目构建多个应用程序 + +### Edit Build Type + +- Debug +- Release + +### Edir Flavors + +- 多渠道配置 + + + +## 文章 + +https://www.jianshu.com/p/e501e2bcf315 + +# 『译』Android Studio 合并多个 Manifest + +``` + + + + + + + + + + + + + + signingConfig signingConfigs.interal + proguardFiles getDefaultProguardFile('proguard-android.txt'), './proguard-rules.pro' + //applicationId = "com.zapp.c37.demo" + manifestPlaceholders["ZGAME_CHANNEL"] = "37_hw" + manifestPlaceholders["ZGAME_GAME_ID"] = "48" + manifestPlaceholders["ZGAME_APP_ID"] = "599" +``` + diff --git a/程序开发/游戏开发/冰风网络/Android SDK.md b/程序开发/游戏开发/冰风网络/Android SDK.md new file mode 100644 index 0000000..678c4ae --- /dev/null +++ b/程序开发/游戏开发/冰风网络/Android SDK.md @@ -0,0 +1,89 @@ +# 配置 + +```xml + + + + http://res-xnyh.38ejed.com/pxgj_test/ + http://res-xnyh.38ejed.com/pxgj_test/ + + c881d28b2003a54594a5ffdf0f1d21e1 + /test/getzonelist.php + /test/getzonestatus.php + /test/userinfo.php + + + + + + + /verifyToken_intranet.php + + http://api1.37.xnyh.jggame.net:18080/android/report.php + http://upload.xnyh.jggame.net:18080/image.php + F@9hLZMlSDCsGb6/EuimBY5R3WH4XvQx + + + true + + true + true + 3 + true + + + + + + + + + true + + +``` + +```python +mSrvListAddress = chooseHost = "http://139.159.150.217:18080" +mServerListUrl = getzonelist = "/test/getzonelist.php" +gid = list_gid = 10000 +pid = list_pid = 888 +``` + + + +# SDK + +## 登陆 + +```python +#无平台测试 +http = "http://139.159.150.217:18080/verifyToken_intranet.php?pid=888&gid=10000&token=zbs1" +#有平台验证 +http = "http://139.159.150.217:18080/verifyToken.php?pid=888&gid=10000&token=zbs1" +``` + + + +## 区服 & 公告 + +```python +#http://192.168.1.192/srclist/branches/pxgj_trunk/gatzonelist.php?apk_mark=8_1&version_list=270&version_notice=2&compress=1 + +mSrvListAddress = "http://192.168.1.192/" +mServerListUrl = "srclist/branches/pxgj_trunk/gatzonelist.php" +gid , pid = 8 , 1 +noticeCacheVersion = 2 +http = "%s%s?apk_mark=%d_%d&version_list=%s&version_notice=%s&compress=1".format( + mSrvListAddress,mServerListUrl,gid,pid)mSrvListAddress = "http://192.168.1.192" +mServerListUrl = "/srclist/branches/pxgj_trunk/gatzonelist.php" +gid , pid = 8 , 1 +serverListCacheVersion = 270 +noticeCacheVersion = 2 +http = "%s%s?apk_mark=%d_%d&version_list=%s&version_notice=%s&compress=1" % ( + mSrvListAddress,mServerListUrl,gid,pid,serverListCacheVersion,noticeCacheVersion) +print(http) +json ={"recommend_zone":0,"loginCheckServer":"http:\/\/139.159.150.217:18080\/verifyToken.php","version_notice":"b_","version_list":null,"productText":null,"notice":null,"area":null,"time":"1688784423","filter_status":0,"filter_num":0} +``` + +https://shouyou.wjx.cn/vm/eO2dHT3.aspx \ No newline at end of file