![](/img/trans.png)
[英]How to solve Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' - Android
[英]Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. in capacitor android
我在构建电容器项目时遇到此错误,我尝试通过更新 sdk 但无法正常工作,我该如何解决?
google-services.json not found, google-services plugin not applied. Push Notifications won't
work
WARNING:: Using flatDirs should be avoided because it doesn't support any meta-data formats.
Currently detected usages:
- repository flatDir used in: project ':app', project ':capacitor-cordova-android-plugins'
WARNING:: Please remove usages of `jcenter()` Maven repository from your build scripts and
migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: root project 'android', project ':app', project ':capacitor-
android', ...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment
variable or by setting the sdk.dir path in your project's local properties file
at 'C:\Users\giova\Desktop\testapp\android\local.properties'.[capacitor]
[ERROR] An error occurred while running subprocess capacitor.
解决方案非常简单,我必须正确地 select 项目文件夹,无论如何感谢您的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.