<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] # Bugly 線上行數信息缺失 檢查混淆文件中下面這行是否存在,否則行數信息在編譯或打包時就已經丟失 ```plain -keepattributes SourceFile,LineNumberTable ``` # Gradle 全局代理配置,提高三方庫下載速度 在已經開啟 Shadowsocks 代理的前提下, 修改 $HOME/.gradle/gradle.properties 文件,增加如下配置: ```plain org.gradle.jvmargs=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080 ``` 參考[知乎回答](https://www.zhihu.com/question/37810416) 若無 Shadowsocks 代理,可更改中央倉庫地址為阿里云的,在項目根目錄 build.gradle 修改如下: ```groovy buildscript { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} } } allprojects { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} } } ``` # 解決國內訪問 s3.amazonaws.com 服務器慢的問題 日常開發中經常性的需要用到亞馬遜服務器(cloud.s3.amazonaws.com)上的資源,但是國內訪問亞馬遜服務器,基本上沒辦法下載成功的。 經 Google,發現可以通過設置 host,強制把訪問節點從美國定向到香港的辦法來解決這個問題。 Windows下,編輯 C:\Windows\System32\drivers\etc\hosts macOS 下,編輯 /etc/hosts 增加如下解析: ```plain 219.76.4.4 github-cloud.s3.amazonaws.com ``` 參考:[https://www.mobibrw.com/2017/6047/comment-page-1](https://www.mobibrw.com/2017/6047/comment-page-1) # Git 代理配置 為 Git 配置 Socks5 代理: ```plain git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' ``` # Android Studio 簽名后依舊 INSTALL_PARSE_FAILED_NO_CERTIFICATES 的問題 在 Android 7.0 中引入了一項新的應用簽名方案 APK Signature Scheme v2,它能提供更快的應用安裝時間和更多針對未授權 APK 文件更改的保護,但在7.0以下版本系統下,有一定概率出現問題(比如我。。) 問題就是出現在這里,因為我一開始只勾選了 V2,沒勾選 V1,所以在7.0以上設備正常,7.0以下設備報錯: ![](https://ws1.sinaimg.cn/mw690/c14636degy1flmgxm6pgej20hu09bwfo.jpg) 解決方案: 將 V1、V2全部勾選,這種部署方式可以兼容各個版本系統;或者僅勾選 V1,也就是仍使用舊版簽名方案來部署應用。 具體可參考 Google 文檔:[https://developer.android.com/about/versions/nougat/android-7.0.html#apk_signature_v2](https://developer.android.com/about/versions/nougat/android-7.0.html#apk_signature_v2) # Android Studio 關閉 AAPT 檢查 在 app 模塊的 build.gradle 文件進行配置: ```groovy defaultConfig { ... aaptOptions{ cruncherEnabled = false } } ``` # Ubuntu 中 vi 不能正常使用方向鍵與退格鍵的問題 原因: Ubuntu 預裝的是 vim tiny 版本,而我們需要的是 vim full 版本 解決: ```plain sudo apt-get remove vim-common sudo apt-get install vim ``` # 修改 aar 包內 class 文件并重新打包 * 將 .aar 文件重命名為 .zip 文件并解壓 * 將解壓得到的 classes.jar 文件重命名為 .zip 文件并解壓 * 替換目標 class 文件 * 壓縮 class 文件夾至 classes.jar 文件并重命名為 clasess.jar * 將剛解壓 .aar 文件得到的目錄下的 classes.jar 進行替換,并重新壓縮重命名為 .aar 文件 # Charles https抓包 參考文檔:[https://www.jianshu.com/p/5788b1e8da02](https://www.jianshu.com/p/5788b1e8da02) 1、設置Charles代理 ![](https://img.kancloud.cn/70/9d/709d43cc20282dc82aa67ff4af93c52d_783x347.png) 2、手機端設置代理 3、手機端安裝證書 ?打開chrome或者火狐訪問 chls.pro/ssl 安裝證書,盡量別用系統瀏覽器,如果下載的證書是后綴名是.pem,請改成.crt 4、測試抓包 5、添加代碼(非必需) 如果出現?java.security.cert.CertPathValidatorException: Trust anchor for certification path not found 異常,則需要添加以下代碼到項目中: ```xml <?xml version="1.0" encoding="utf-8"?> <network-security-config> <debug-overrides> <trust-anchors> <!-- Trust user added CAs while debuggable only --> <certificates src="user" /> </trust-anchors> </debug-overrides> </network-security-config> ``` ```xml <application <!--其他配置--> android:networkSecurityConfig="@xml/network_security_config" tools:targetApi="n"> ``` # WebView debug 1、在應用代碼中為WebView打開debug開關: ```java if (!BuildConfig.RELEASE_PUBLISH && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { WebView.setWebContentsDebuggingEnabled(true); } else { WebView.setWebContentsDebuggingEnabled(false); } ``` 2、手機打開USB調試,連接電腦 3、在Chrome地址欄輸入:chrome://inspect,界面如下: ![](https://img.kancloud.cn/bf/08/bf08c0812dfebb029e67bb01eea2f45d_588x342.png) 4、點擊inspect按鈕,即可打開調試頁面: ![](https://img.kancloud.cn/94/1b/941b1a790a09e451489f7771ffbd81cf_752x752.png) 注意: 第一次使用可能會出現白屏,使用梯子,或者配置host: ```plain # inspect 172.217.14.116 chrome-devtools-frontend.appspot.com 172.217.14.116 chrometophone.appspot.com ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看