1.小米手機顯示安卓失敗之類
開發者選項允許usb安卓
2.java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
轉https://bbs.csdn.net/topics/392342785?page=1
3.This Gradle plugin requires Studio 3.0 minimum
轉https://blog.csdn.net/shenggaofei/article/details/78165940
4.Could not find com.android.tools.build:gradle:3.0.0.
轉https://blog.csdn.net/zhouxianling233/article/details/78359217
5.Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'.
轉https://blog.csdn.net/p576518762/article/details/78356137
6.微信登錄 支付分享
轉https://www.cnblogs.com/yishaochu/p/7531638.html
微信登錄.分享
轉https://www.cnblogs.com/shen-hua/p/6343736.html
7.Error:Failed to resolve: com.android.support:appcompat-v7:27.+
轉https://blog.csdn.net/qq_31344665/article/details/79283979
8.解決Android Studio Gradle Build Running慢的問題
轉https://www.cnblogs.com/oukunqing/p/5864671.html?utm_source=itdadao&utm_medium=referral
轉https://blog.csdn.net/dabaoonline/article/details/50550423
轉https://blog.csdn.net/a549742320/article/details/52525257
9.Error:The module 'app' is an Android project without build variants, and cannot be built.
Please fix the module's configuration in the build.gradle file and sync the project again.
項目最后用 gradle 文件點擊的運行
10.unable to access android sdk add-on list的解決方法
轉https://blog.csdn.net/u014471160/article/details/78505653
The specified Android SDK Build Tools version (27.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.2.
Android SDK Build Tools 27.0.3 will be used.
11.Android studio 提示 module not specified
Build項目還是不行,那么就重啟了as( File->Invalidate Caches/Restart)
12Android Studio修改字體大小
https://www.cnblogs.com/diyishijian/p/6824328.html
https://blog.csdn.net/niaonao/article/details/51378596
13.> Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.
轉https://blog.csdn.net/sky_castle/article/details/53606929
buid 配置 java
14.Error:Could not find com.android.tools.build:gradle:3.1.2.
build 配置 少了 goole
15.android-apt plugin is incompatible with the Android Gradle plugin. ?Please use 'annotationProcessor' configuration instead.
轉https://blog.csdn.net/sxk874890728/article/details/78367726
16.如何更改android Studio logcat字體大小?
轉https://blog.csdn.net/ykttt1/article/details/46291029
17.Error:Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8.
轉https://blog.csdn.net/fullstackdeveloper/article/details/52701707
18.The version of Gradle you are using (3.3) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later?
轉https://blog.csdn.net/baidu_38291700/article/details/80263294
19. org.gradle.internal.resource.transport.http.HttpRequestException: Could not HEAD
轉?https://blog.csdn.net/yuanxw44/article/details/80061381
google()
20.Annotation processors must be explicitly declared now. ?The following dependencies on the compile cl (7.0.1)
轉?https://blog.csdn.net/keep_holding_on/article/details/76188657
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
21.design editor is unavailable until a successful build
轉?https://blog.csdn.net/zhs966877/article/details/78466884?locationNum=6&fps=1
Rebuild Project
22.studio 中 新文件直接提交svn項目中
轉?https://blog.csdn.net/acmen99/article/details/76825426
23.listview 數據回調監聽
轉https://blog.csdn.net/belyxiong/article/details/46819671
24 動畫實現的overridePendingTransition 注意點
轉?https://blog.csdn.net/u010015108/article/details/49616003
25 Call requires API level 24 (current min is 15): java.util.stream.Stream#map less... (Ctrl+F1)
This check scans through all the Android API calls in the application and warns about any calls that are not available on all versions targeted by this application (according to its minimum SDK attribute in the manifest). ?If you really want to use this API and don't need to support older devices just set the minSdkVersion in your build.gradle or AndroidManifest.xml files. ?If your code is deliberately accessing newer APIs, and you have ensured (e.g. with conditional execution) that this code will only ever be called on a supported platform, then you can annotate your class or method with the @TargetApi (忽略)
25.決“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”問題
轉?https://www.cnblogs.com/yeahgis/p/4660873.html
26.Failed to find byte code for java/util/function/Predicate
轉?https://blog.csdn.net/qq_31433709/article/details/80969761
27,oppo 極光推送收不到
轉?https://community.jiguang.cn/t/topic/29762
28無法訪問https://developer.android.com相應的網站
轉?https://blog.csdn.net/saywhat_sayhello/article/details/78989077
29.Could not find method google() for arguments [] on repository container of type
gradle 的版本配置太低
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
classpath 'com.android.tools.build:gradle:3.1.4'
30.import io.reactivex.android.schedulers.AndroidSchedulers 類找不到
io.reactivex.rxjava2:rxandroid:2.0.2版本 改成 2.0.1 然后build
31.dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog
app 中 build.grale 配置 multiDexEnabled true 配置
加 apllication中 代碼
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(base);
}
32 極光推送 web推送 可以,api推送不可以
ok了 ?web 自定義推送 可以成功。 api 推送不成功。 要debug 模式true下
33. studio 占用 c盤太大的問題 可選的
C:\Users\Administrator\AppData\Local\Temp ?刪除 ?處理( 可能導致studio 所有項目的結構發生變化)
34.提示安裝包已損壞
1.點擊應用里。。所有用戶卸載。
2.我的AS是3.2版本的,gradle版本是4.1的,前面自己寫了demo,簽名打包之后用應用寶安裝,提示包已損壞,請重新下載。。。使用adb安裝命令是可以正常安裝,本地運行也是可以正常運行,但是用應用寶安裝就出問題,嘗試了各種網上說的方法,還是沒有效果,最后看到一個帖子,里面提到“把build tools 版本改成27.0.2就行了”,我就試了一下,確實可行,這里只要修改在27以上就OK了,我的是27.0.3,在這里記錄一下,下次碰到這個問題,就不怕忘記怎么處理了。
轉https://blog.csdn.net/chenhan0719/article/details/79738821?
35.GPBI: {"kind":"error","text":"error: resource android:attr/ttcIndex not found.","sources":[{"file":"C:\\Users\\Administrator\\.gradle\\caches\\transforms-1\\files-1.1\\support-compat-28.0.0.aar\\6010d9958d2330d28494eb2d1ce90f89\\res\\values\\values.xml","position":{"startLine":132,"startColumn":4,"startOffset":7725,"endColumn":69,"endOffset":7790}}],"original":"","tool":"AAPT"}
rxandroidVersion = "2.0.1" ? 2.0.2 改成2.0.1
還有 support ?配置沒有不對
36.這個問題是由于操作 33導致。studio project structure 目錄結構發生變化
因為c盤空間不夠啊 。按33操作導致。studio 有關插件失效 。