diff --git a/doc/小米便签维护时遇到的问题.md b/doc/小米便签维护时遇到的问题.md new file mode 100644 index 0000000..84df4ac --- /dev/null +++ b/doc/小米便签维护时遇到的问题.md @@ -0,0 +1,20 @@ +## 问题1: **Could not find com.android.tools.build:gradle:7.4.1** +- 打开build.gradle(:app)文件在添加两行google(),之所以添加google()是因为jcenter()已经在Android上被废弃了。 +[![p9SzSeS.png](https://s1.ax1x.com/2023/04/15/p9SzSeS.png)] +- google()指的是Google自家的仓库,比如我们使用的很多第一方库,如RecyclerView, Jetpack Components等等就是从这里拉取的。 + +- jcenter()指的就是由JFrog提供的JCenter仓库,几乎Android上所有的第三方开源项目都会选择将库发布到这里,比如你在项目中集成的OkHttp、Retrofit、RxJava等等第三方库都是从这里拉取的。 +## 问题2:Cannot resolve method 'setLatestEventlnfo' in 'Notification' +在低于API Level 11版本,也就是Android 2.3.3以下的系统中,setLatestEventInfo()函数是唯一的实现方法;而在高于API Level 11的版本中setLatestEventInfo()函数已经被弃用了,于是需要根据现有的Android版本进行相应地重写该函数 +[![p9pp4s0.png](https://s1.ax1x.com/2023/04/15/p9pp4s0.png)](https://imgse.com/i/p9pp4s0) +## 问题3:3 files found with path 'META-INF/DEPENDENCIES'.** +这是在安装依赖的时候路径有问题,导致项目无法找到依赖包 +直接在build.gradle(:app)文件中加入 +> useLibrary 'org.apache.http.legacy', +[![p9p9Xtg.png](https://s1.ax1x.com/2023/04/15/p9p9Xtg.png)](https://imgse.com/i/p9p9Xtg) +并sync now,多次点击。 +## 问题:安装完成后不显示菜单栏 +在github上有位热心网友提供了解决方法。 +[![p9Szpdg.md.png](https://s1.ax1x.com/2023/04/15/p9Szpdg.md.png)] +完美解决。 + diff --git a/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.bin b/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.bin index 4cd8704..5e95cd2 100644 Binary files a/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.bin and b/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.bin differ diff --git a/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.lock b/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.lock index 4730047..e20331b 100644 Binary files a/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.lock and b/src/Notes/.gradle/7.4.1/fileHashes/fileHashes.lock differ diff --git a/src/Notes/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/src/Notes/.gradle/buildOutputCleanup/buildOutputCleanup.lock index a997be0..45fc116 100644 Binary files a/src/Notes/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/src/Notes/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/src/Notes/.gradle/buildOutputCleanup/outputFiles.bin b/src/Notes/.gradle/buildOutputCleanup/outputFiles.bin index 8e8b609..6ceb302 100644 Binary files a/src/Notes/.gradle/buildOutputCleanup/outputFiles.bin and b/src/Notes/.gradle/buildOutputCleanup/outputFiles.bin differ