listen1 / listen1_mobile

one for all free music in china (iOS, Android)
https://listen1.github.io/listen1
MIT License
2.82k stars 504 forks source link

最新的master分支,安卓启动报错 #118

Open Kilims opened 2 years ago

Kilims commented 2 years ago

根据Readme.md,依次跑:

yarn
yarn run link
yarn run start:android

期间报了sdk地址没找到的错,在android文件夹下添加了local.properties文件,添加sdk.dir,即可

然后继续执行yarn run start:android报错了,错误信息如下:

Loading dependency graph...Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
<====---------> 33% CONFIGURING [1s]

> Task :@react-native-community_toolbar-android:compileDebugJavaWithJavac FAILE
/Users/yejinlei/Documents/playground/personal/2022/listen1_mobile/node_modules/@react-native-community/toolbar-android/android/src/main/java/com/reactnativecommunity/toolbarandroid/ReactToolbarManager.java:14: 错误: 程序包androidx.core.view不存在
import androidx.core.view.ViewCompat;
                         ^
/Users/yejinlei/Documents/playground/personal/2022/listen1_mobile/node_modules/@react-native-community/toolbar-android/android/src/main/java/com/reactnativecommunity/toolbarandroid/ReactToolbar.java:14: 错误: 程序包androidx.appcompat.widget不存在
import androidx.appcompat.widget.Toolbar;
                                ^
/Users/yejinlei/Documents/playground/personal/2022/listen1_mobile/node_modules/@react-native-community/toolbar-android/android/src/main/java/com/reactnativecommunity/toolbarandroid/ReactToolbar.java:38: 错误: 找不到符号
public class ReactToolbar extends Toolbar {

import androidx.core.view.ViewCompat missing,烦请教怎么解决?

话说有计划重构下mobile端吗?比如用flutter什么的