Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于运行qmuidemo的注意事项 #1168

Open
3 tasks done
qilin02811 opened this issue Nov 9, 2023 · 2 comments
Open
3 tasks done

关于运行qmuidemo的注意事项 #1168

qilin02811 opened this issue Nov 9, 2023 · 2 comments

Comments

@qilin02811
Copy link

对于经验不足的开发者(比如我),踩坑后,给出qmuidemo的运行步骤。

运行环境

  • 设备型号::Android5.1
  • Gradle 版本:与项目相同
  • QMUI Android 版本:1.0.7 (与项目相同)
  1. clone后,用android studio 打开项目
  2. 可能会遇到JAVA_HOME is not set的问题,试了下修改jdk的系统变量对应路径,发现无用,查博客,发现将(QMUI_Android)的build.gradle.kts文件中id("com.osacky.doctor") version "0.8.0"注释掉即可。

image

  1. 可能遇到JDK版本和gradle版本不对应的问题,我clone的master分支,该项目gradle版本需要JDK11以上,故需要设置android studio gradle对应sdk为JDK11以上,

image

  1. 可能遇到设备架构不支持的问题,在(qmuidemo的)build.gradle.kts文件中ndk加上对应设备架构代码即可。

image

至此,应该可以运行起来qmuidemo了。

@xuxianshen20xiaojiaoqi
Copy link

Failed to apply plugin 'com.android.internal.library'. 我这是啥

@qilin02811
Copy link
Author

Failed to apply plugin 'com.android.internal.library'. 我这是啥

应该是gradle版本和jdk版本不匹配? 尝试JDK版本11试试,参考第3点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants