Open Kilims opened 2 years ago
根据Readme.md,依次跑:
yarn yarn run link yarn run start:android
期间报了sdk地址没找到的错,在android文件夹下添加了local.properties文件,添加sdk.dir,即可
local.properties
sdk.dir
然后继续执行yarn run start:android报错了,错误信息如下:
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什么的
根据Readme.md,依次跑:
期间报了sdk地址没找到的错,在android文件夹下添加了
local.properties
文件,添加sdk.dir
,即可然后继续执行
yarn run start:android
报错了,错误信息如下:import androidx.core.view.ViewCompat missing,烦请教怎么解决?
话说有计划重构下mobile端吗?比如用flutter什么的