原创 Android Studio禁用fetching documentation

每次調用Java和Android的SDK代碼時,AS都會自動搜索文檔,如果網絡不好,會一直顯示"fetching documentation"。 可以通過設置將其關閉 Preferences–Editor–General–Code

原创 Flutter解決path_provider編譯錯誤

使用path_provider時,運行時可能遇到以下錯誤 FAILURE: Build failed with an exception. * What went wrong: Could not determine the d

原创 更改drawableLeft、Right、Bottom、Top圖片的大小

默認情況下,在xml中爲TextView設置drawableLeft、drawableRight、drawableTop、drawableBottom,圖片的大小是根據圖片的像素自動適配的。 有時候這樣顯示出來的效果跟UI設計師出

原创 Android Studio resource linking failed

場景 Android Studio升級到3.2.1後,不知道是誰改了哪個module的依賴庫版本號,build時出現以下錯誤 Android resource linking failed Output: /Users/duju

原创 解決You need to use a Theme.AppCompat theme (or descendant) with this activity

錯誤信息 2019-07-24 15:35:40.385 18490-18490/com.adojayfan.rntest E/AndroidRuntime: FATAL EXCEPTION: main Process:

原创 React Native環境搭建及配置問題

版本問題 RN從0.60開始,Android平臺移植到了androidx。 如果不想用androidx,安裝rn必須指定版本爲0.59。 $ yarn add [email protected] 對應的 react版本爲1

原创 Android NDK: APP_STL stlport_static is no longer supported

編譯ndk項目時,出現以下錯誤 *** Android NDK: APP_STL stlport_static is no longer supported. Please switch to either c++_static

原创 The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher

升級Gradle到最新版本後,編譯提示以下錯誤. ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and hig

原创 添加Flutter模塊到已有項目(Android)

創建Flutter模塊 #進入指定目錄 $ cd #使用命令創建flutter模塊,flutter_module是模塊名 $ flutter create -t module flutter_module 主工程配置 app的

原创 flutter運行報錯Method not found: 'toStringDeep'.toStringDeep()

項目以前運行的好好的,突然就編譯報錯了,代碼完全沒問題。 錯誤如下 Compiler message: org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method

原创 Unable to 'pub upgrade' flutter tool. Retrying in five seconds...

原因 因爲Dart和Flutter都是Google開發的,所以被牆了,你懂的。 解決方法 爲Flutter設置國內鏡像就可以了。 linux或mac 使用vim編輯 ~/.bash_profile export PUB_HOSTED_

原创 Flutter使用Scaffold報錯。

錯誤信息 E/flutter ( 7426): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: Scaffold.of() called with a

原创 RangeError (index): Invalid value: Valid value range is empty: 0

場景 最近在學習flutter,運行時碰到了這個錯誤。 I/flutter (25300): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═════════════════════════════

原创 Android Studio New裏面沒有New Flutter Project

跟着Flutter中文網的配置教程,安裝好了flutter,在Android studio裏面也安裝了dart和flutter的插件。重啓後還是在FIle->New裏面沒有顯示New Flutter Project。 反覆卸載重裝da

原创 android studio cannot resolve symbol

有時候Android Studio 同步時會莫名奇妙地遇到這個錯誤。 以下是我的解決方案 在Android Studio最上面的菜單中,點擊File,選擇invalidate Caches/Restart 會彈出以下對話框,選擇inv