meisam22605 3 سال قبل

سلام و عرض ادب
طبق آموزش های شما پکیج camera و البته بقیه پکیج های مربوطه را نصب کردم و مشکلی بابت نصب نداد.. وقتی برنامه را stop میکنم و دوباره play میکنم خطای زیر میده و اجازه build نمیده.

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:camera:javaPreCompileDebug’.
> Could not resolve all files for configuration ‘:camera:debugCompileClasspath’.
> Could not find core.jar (androidx.core:core:1.1.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/core/core/1.1.0/core-1.1.0.jar
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4m 26s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.

البته پکیج های دیگه ای که نصب میکنم این خطا را نمیدهد فقط این پکیج باعث خطا می شود.
ممنون راهنمایی بفرمایید

Hesam عضو سایت پاسخ داده شده 3 سال قبل

همونطور که داخل پیام خطا نوشته androidx.core:core:1.1.0 پیدا نشده ورژن و تغییر بدید امتحان کنید برنامه تغییر ای پی هم مطمئن باشید مشکلی نداره.
اگر موارد بالا حل نشد بررسی کنید ببینید پروژه اندروید اصلا با androidx ساخته شده یا appcompat