添加代码,更新文档

master
Brown Lu 3 years ago
parent 323b5d64d4
commit 8d6082097d

@ -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等等第三方库都是从这里拉取的。
## 问题2Cannot 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)
## 问题33 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)]
完美解决。
Loading…
Cancel
Save