Ошибка компиляции Hilt: Android BaseExtension не найденAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Ошибка компиляции Hilt: Android BaseExtension не найден

Сообщение Anonymous »

Следуя этому руководству

https://medium.com/@mohit2656422/setup- ... 6e42bb261a

чтобы добавить Hilt в мой проект, я получаю эту ошибку при компиляции кода :
* Exception is:
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.google.dagger.hilt.android', version: ' 2 . 5 7 . 2 ' ] < b r / > a t o r g . g r a d l e . p l u g i n . u s e . i n t e r n a l . D e f a u l t P l u g i n R e q u e s t A p p l i c a t o r . e x c e p t i o n O c c u r r e d ( D e f a u l t P l u g i n R e q u e s t A p p l i c a t o r . j a v a : 1 8 3 ) < b r / > a t o r g . g r a d l e . p l u g i n . u s e . i n t e r n a l . D e f a u l t P l u g i n R e q u e s t A p p l i c a t o r . a c c e s s $ 4 0 0 ( D e f a u l t P l u g i n R e q u e s t A p p l i c a t o r . j a v a : 5 4 ) < b r / > a t . . . . < b r / > o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . r u n ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 4 7 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d O p e r a t i o n S c r i p t P l u g i n . l a m b d a $ a p p l y $ 0 ( B u i l d O p e r a t i o n S c r i p t P l u g i n . j a v a : 6 5 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . c o d e . D e f a u l t U s e r C o d e A p p l i c a t i o n C o n t e x t . a p p l y ( D e f a u l t U s e r C o d e A p p l i c a t i o n C o n t e x t . j a v a : 4 4 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d O p e r a t i o n S c r i p t P l u g i n . a p p l y ( B u i l d O p e r a t i o n S c r i p t P l u g i n . j a v a : 6 5 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . l a m b d a $ a p p l y T o M u t a b l e S t a t e $ 1 ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 3 5 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . f r o m M u t a b l e S t a t e ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 5 3 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . a p p l y T o M u t a b l e S t a t e ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 3 4 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . B u i l d S c r i p t P r o c e s s o r . e x e c u t e ( B u i l d S c r i p t P r o c e s s o r . j a v a : 4 6 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . B u i l d S c r i p t P r o c e s s o r . e x e c u t e ( B u i l d S c r i p t P r o c e s s o r . j a v a : 2 7 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . C o n f i g u r e A c t i o n s P r o j e c t E v a l u a t o r . e v a l u a t e ( C o n f i g u r e A c t i o n s P r o j e c t E v a l u a t o r . j a v a : 3 5 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . L i f e c y c l e P r o j e c t E v a l u a t o r $ E v a l u a t e P r o j e c t . l a m b d a $ r u n $ 0 ( L i f e c y c l e P r o j e c t E v a l u a t o r . j a v a : 1 0 9 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . l a m b d a $ a p p l y T o M u t a b l e S t a t e $ 1 ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 3 5 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . l a m b d a $ f r o m M u t a b l e S t a t e $ 2 ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 5 8 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . w o r k . D e f a u l t W o r k e r L e a s e S e r v i c e . w i t h R e p l a c e d L o c k s ( D e f a u l t W o r k e r L e a s e S e r v i c e . j a v a : 3 5 9 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . f r o m M u t a b l e S t a t e ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 5 8 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . a p p l y T o M u t a b l e S t a t e ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 3 4 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . L i f e c y c l e P r o j e c t E v a l u a t o r $ E v a l u a t e P r o j e c t . r u n ( L i f e c y c l e P r o j e c t E v a l u a t o r . j a v a : 1 0 0 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 1 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 2 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 1 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 2 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 2 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 2 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 1 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . r u n ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 4 7 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . L i f e c y c l e P r o j e c t E v a l u a t o r . e v a l u a t e ( L i f e c y c l e P r o j e c t E v a l u a t o r . j a v a : 7 2 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t . e v a l u a t e U n c h e c k e d ( D e f a u l t P r o j e c t . j a v a : 8 1 5 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . P r o j e c t L i f e c y c l e C o n t r o l l e r . l a m b d a $ e n s u r e S e l f C o n f i g u r e d $ 2 ( P r o j e c t L i f e c y c l e C o n t r o l l e r . j a v a : 8 8 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . l a m b d a $ d o T r a n s i t i o n $ 1 4 ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 5 5 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . d o T r a n s i t i o n ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . d o T r a n s i t i o n ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 5 4 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . l a m b d a $ m a y b e T r a n s i t i o n I f N o t C u r r e n t l y T r a n s i t i o n i n g $ 1 0 ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 1 9 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . w o r k . D e f a u l t S y n c h r o n i z e r . w i t h L o c k ( D e f a u l t S y n c h r o n i z e r . j a v a : 3 5 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . m a y b e T r a n s i t i o n I f N o t C u r r e n t l y T r a n s i t i o n i n g ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 1 9 5 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . P r o j e c t L i f e c y c l e C o n t r o l l e r . e n s u r e S e l f C o n f i g u r e d ( P r o j e c t L i f e c y c l e C o n t r o l l e r . j a v a : 8 8 ) < b r / > a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y $ P r o j e c t S t a t e I m p l . e n s u r e C o n f i g u r e d ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 4 0 0 ) < b r / > a t o r g . g r a d l e . e x e c u t i o n . T a s k P a t h P r o j e c t E v a l u a t o r . c o n f i g u r e ( T a s k P a t h P r o j e c t E v a l u a t o r . j a v a : 7 0 ) < b r / > a t o r g . g r a d l e . e x e c u t i o n . T a s k P a t h P r o j e c t E v a l u a t o r . c o n f i g u r e H i e r a r c h y ( T a s k P a t h P r o j e c t E v a l u a t o r . j a v a : 8 6 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . D e f a u l t P r o j e c t s P r e p a r e r . p r e p a r e P r o j e c t s ( D e f a u l t P r o j e c t s P r e p a r e r . j a v a : 5 0 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d T r e e P r e p a r i n g P r o j e c t s P r e p a r e r . p r e p a r e P r o j e c t s ( B u i l d T r e e P r e p a r i n g P r o j e c t s P r e p a r e r . j a v a : 6 5 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d O p e r a t i o n F i r i n g P r o j e c t s P r e p a r e r $ C o n f i g u r e B u i l d . r u n ( B u i l d O p e r a t i o n F i r i n g P r o j e c t s P r e p a r e r . j a v a : 5 2 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 1 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 2 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 1 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 2 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 2 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 2 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 1 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . r u n ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 4 7 ) < b r / > a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d O p e r a t i o n F i r i n g P r o j e c t s P r e p a r e r . p r e p a r e P r o j e c t s ( B u i l d O p e r a t i o n F i r i n g P r o j e c t s P r e p a r e r . j a v a : 4 0 ) < b r / > a t o r g . g r a d l e . i n i t i a l i z a t i o n . V i n t a g e B u i l d M o d e l C o n t r o l l e r . l a m b d a $ p r e p a r e P r o j e c t s $ 2 ( V i n t a g e B u i l d M o d e l C o n t r o l l e r . j a v a : 8 3 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . l a m b d a $ d o T r a n s i t i o n $ 1 4 ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 5 5 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . d o T r a n s i t i o n ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . d o T r a n s i t i o n ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 5 4 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . l a m b d a $ t r a n s i t i o n I f N o t P r e v i o u s l y $ 1 1 ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 1 3 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . w o r k . D e f a u l t S y n c h r o n i z e r . w i t h L o c k ( D e f a u l t S y n c h r o n i z e r . j a v a : 3 5 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . t r a n s i t i o n I f N o t P r e v i o u s l y ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 2 0 9 ) < b r / > a t o r g . g r a d l e . i n i t i a l i z a t i o n . V i n t a g e B u i l d M o d e l C o n t r o l l e r . p r e p a r e P r o j e c t s ( V i n t a g e B u i l d M o d e l C o n t r o l l e r . j a v a : 8 3 ) < b r / > a t o r g . g r a d l e . i n i t i a l i z a t i o n . V i n t a g e B u i l d M o d e l C o n t r o l l e r . g e t C o n f i g u r e d M o d e l ( V i n t a g e B u i l d M o d e l C o n t r o l l e r . j a v a : 6 3 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d . D e f a u l t B u i l d L i f e c y c l e C o n t r o l l e r . l a m b d a $ w i t h P r o j e c t s C o n f i g u r e d $ 1 ( D e f a u l t B u i l d L i f e c y c l e C o n t r o l l e r . j a v a : 1 3 3 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . l a m b d a $ n o t I n S t a t e $ 3 ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 1 3 2 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . w o r k . D e f a u l t S y n c h r o n i z e r . w i t h L o c k ( D e f a u l t S y n c h r o n i z e r . j a v a : 4 5 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . m o d e l . S t a t e T r a n s i t i o n C o n t r o l l e r . n o t I n S t a t e ( S t a t e T r a n s i t i o n C o n t r o l l e r . j a v a : 1 2 8 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d . D e f a u l t B u i l d L i f e c y c l e C o n t r o l l e r . w i t h P r o j e c t s C o n f i g u r e d ( D e f a u l t B u i l d L i f e c y c l e C o n t r o l l e r . j a v a : 1 3 3 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d . D e f a u l t B u i l d T o o l i n g M o d e l C o n t r o l l e r . l o c a t e B u i l d e r F o r T a r g e t ( D e f a u l t B u i l d T o o l i n g M o d e l C o n t r o l l e r . j a v a : 5 8 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . D e f a u l t B u i l d T r e e M o d e l C r e a t o r $ D e f a u l t B u i l d T r e e M o d e l C o n t r o l l e r . l a m b d a $ l o c a t e B u i l d e r F o r B u i l d T a r g e t $ 0 ( D e f a u l t B u i l d T r e e M o d e l C r e a t o r . j a v a : 1 3 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d . D e f a u l t B u i l d L i f e c y c l e C o n t r o l l e r . w i t h T o o l i n g M o d e l s ( D e f a u l t B u i l d L i f e c y c l e C o n t r o l l e r . j a v a : 3 2 7 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d . A b s t r a c t B u i l d S t a t e . w i t h T o o l i n g M o d e l s ( A b s t r a c t B u i l d S t a t e . j a v a : 1 6 0 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . D e f a u l t B u i l d T r e e M o d e l C r e a t o r $ D e f a u l t B u i l d T r e e M o d e l C o n t r o l l e r . l o c a t e B u i l d e r F o r B u i l d T a r g e t ( D e f a u l t B u i l d T r e e M o d e l C r e a t o r . j a v a : 1 3 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . D e f a u l t B u i l d T r e e M o d e l C r e a t o r $ D e f a u l t B u i l d T r e e M o d e l C o n t r o l l e r . l o c a t e B u i l d e r F o r D e f a u l t T a r g e t ( D e f a u l t B u i l d T r e e M o d e l C r e a t o r . j a v a : 1 2 1 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . D e f a u l t B u i l d T r e e M o d e l C r e a t o r $ D e f a u l t B u i l d T r e e M o d e l C o n t r o l l e r . l o c a t e B u i l d e r F o r T a r g e t ( D e f a u l t B u i l d T r e e M o d e l C r e a t o r . j a v a : 1 1 0 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . D e f a u l t B u i l d T r e e M o d e l C r e a t o r $ D e f a u l t B u i l d T r e e M o d e l C o n t r o l l e r . a c c e s s $ 2 0 0 ( D e f a u l t B u i l d T r e e M o d e l C r e a t o r . j a v a : 7 0 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . D e f a u l t B u i l d T r e e M o d e l C r e a t o r $ D e f a u l t B u i l d T r e e M o d e l C o n t r o l l e r $ 1 . c a l l ( D e f a u l t B u i l d T r e e M o d e l C r e a t o r . j a v a : 8 5 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ C a l l a b l e B u i l d O p e r a t i o n W o r k e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 2 0 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ C a l l a b l e B u i l d O p e r a t i o n W o r k e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 2 0 4 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 2 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r $ 2 . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 1 6 6 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 9 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . c a l l ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 5 3 ) < b r / > a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . D e f a u l t B u i l d T r e e M o d e l C r e a t o r $ D e f a u l t B u i l d T r e e M o d e l C o n t r o l l e r . g e t M o d e l ( D e f a u l t B u i l d T r e e M o d e l C r e a t o r . j a v a : 8 1 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . p r o v i d e r . r u n n e r . D e f a u l t B u i l d C o n t r o l l e r . g e t M o d e l ( D e f a u l t B u i l d C o n t r o l l e r . j a v a : 1 0 4 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . c o n s u m e r . c o n n e c t i o n . P a r a m e t e r A w a r e B u i l d C o n t r o l l e r A d a p t e r . g e t M o d e l ( P a r a m e t e r A w a r e B u i l d C o n t r o l l e r A d a p t e r . j a v a : 4 0 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . c o n s u m e r . c o n n e c t i o n . U n p a r a m e t e r i z e d B u i l d C o n t r o l l e r . g e t M o d e l ( U n p a r a m e t e r i z e d B u i l d C o n t r o l l e r . j a v a : 1 1 6 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . c o n s u m e r . c o n n e c t i o n . N e s t e d A c t i o n A w a r e B u i l d C o n t r o l l e r A d a p t e r . g e t M o d e l ( N e s t e d A c t i o n A w a r e B u i l d C o n t r o l l e r A d a p t e r . j a v a : 3 2 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . c o n s u m e r . c o n n e c t i o n . U n p a r a m e t e r i z e d B u i l d C o n t r o l l e r . g e t M o d e l ( U n p a r a m e t e r i z e d B u i l d C o n t r o l l e r . j a v a : 7 9 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . c o n s u m e r . c o n n e c t i o n . N e s t e d A c t i o n A w a r e B u i l d C o n t r o l l e r A d a p t e r . g e t M o d e l ( N e s t e d A c t i o n A w a r e B u i l d C o n t r o l l e r A d a p t e r . j a v a : 3 2 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . c o n s u m e r . c o n n e c t i o n . U n p a r a m e t e r i z e d B u i l d C o n t r o l l e r . g e t M o d e l ( U n p a r a m e t e r i z e d B u i l d C o n t r o l l e r . j a v a : 6 4 ) < b r / > a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . c o n s u m e r . c o n n e c t i o n . N e s t e d A c t i o n A w a r e B u i l d C o n t r o l l e r A d a p t e r . g e t M o d e l ( N e s t e d A c t i o n A w a r e B u i l d C o n t r o l l e r A d a p t e r . j a v a : 3 2 ) < b r / > a t c o m . i n t e l l i j . g r a d l e . t o o l i n g E x t e n s i o n . i m p l . m o d e l S e r i a l i z a t i o n . T o o l i n g S e r i a l i z e r C o n v e r t e r . l a m b d a $ n e w $ 0 ( T o o l i n g S e r i a l i z e r C o n v e r t e r . j a v a : 2 4 ) < b r / > a t c o m . i n t e l l i j . g r a d l e . t o o l i n g E x t e n s i o n . i m p l . t e l e m e t r y . G r a d l e O p e n T e l e m e t r y . c a l l W i t h S p a n ( G r a d l e O p e n T e l e m e t r y . j a v a : 5 5 ) < b r / > a t c o m . i n t e l l i j . g r a d l e . t o o l i n g E x t e n s i o n . i m p l . t e l e m e t r y . G r a d l e O p e n T e l e m e t r y . c a l l W i t h S p a n ( G r a d l e O p e n T e l e m e t r y . j a v a : 3 1 ) < b r / > a t c o m . i n t e l l i j . g r a d l e . t o o l i n g E x t e n s i o n . i m p l . m o d e l S e r i a l i z a t i o n . T o o l i n g S e r i a l i z e r C o n v e r t e r . & l t ; i n i t & g t ; ( T o o l i n g S e r i a l i z e r C o n v e r t e r . j a v a : 2 3 ) < b r / > a t c o m . i n t e l l i j . g r a d l e . t o o l i n g E x t e n s i o n . i m p l . m o d e l A c t i o n . G r a d l e M o d e l F e t c h A c t i o n . l a m b d a $ i n i t A c t i o n $ 9 ( G r a d l e M o d e l F e t c h A c t i o n . j a v a : 1 7 1 ) < b r / > a t c o m . i n t e l l i j . g r a d l e . t o o l i n g E x t e n s i o n . i m p l . t e l e m e t r y . G r a d l e O p e n T e l e m e t r y . c a l l W i t h S p a n ( G r a d l e O p e n T e l e m e t r y . j a v a : 5 5 )
at com.intellij.gradle.toolingExtension.impl.telemetry.GradleOpenTelemetry.callWithSpan(GradleOpenTelemetry.java:31)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.initAction(GradleModelFetchAction.java:170)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.lambda$doExecute$4(GradleModelFetchAction.java:118)
at com.intellij.gradle.toolingExtension.impl.telemetry.GradleOpenTelemetry.callWithSpan(GradleOpenTelemetry.java:55)
at com.intellij.gradle.toolingExtension.impl.telemetry.GradleOpenTelemetry.callWithSpan(GradleOpenTelemetry.java:31)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.doExecute(GradleModelFetchAction.java:117)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.lambda$execute$1(GradleModelFetchAction.java:103)
at com.intellij.gradle.toolingExtension.impl.telemetry.GradleOpenTelemetry.callWithSpan(GradleOpenTelemetry.java:55)
at com.intellij.gradle.toolingExtension.impl.telemetry.GradleOpenTelemetry.callWithSpan(GradleOpenTelemetry.java:31)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.lambda$execute$2(GradleModelFetchAction.java:102)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.withOpenTelemetry(GradleModelFetchAction.java:297)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.lambda$execute$3(GradleModelFetchAction.java:101)
at com.intellij.gradle.toolingExtension.impl.util.GradleExecutorServiceUtil.withSingleThreadExecutor(GradleExecutorServiceUtil.java:18)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.execute(GradleModelFetchAction.java:100)
at com.intellij.gradle.toolingExtension.impl.modelAction.GradleModelFetchAction.execute(GradleModelFetchAction.java:33)
at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:65)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.executeAction(AbstractClientProvidedBuildActionRunner.java:108)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.runAction(AbstractClientProvidedBuildActionRunner.java:96)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.beforeTasks(AbstractClientProvidedBuildActionRunner.java:80)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator.beforeTasks(DefaultBuildTreeModelCreator.java:62)
at org.gradle.internal.cc.impl.barrier.BarrierAwareBuildTreeModelCreator.beforeTasks$lambda$0(BarrierAwareBuildTreeModelCreator.kt:30)
at org.gradle.internal.cc.impl.barrier.VintageConfigurationTimeActionRunner.runConfigurationTimeAction(VintageConfigurationTimeActionRunner.kt:48)
at org.gradle.internal.cc.impl.barrier.BarrierAwareBuildTreeModelCreator.beforeTasks(BarrierAwareBuildTreeModelCreator.kt:29)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$fromBuildModel$2(DefaultBuildTreeLifecycleController.java:83)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:120)
at org.gradle.internal.model.StateTransitionController.lambda$transition$6(StateTransitionController.java:169)
at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:266)
at org.gradle.internal.model.StateTransitionController.lambda$transition$7(StateTransitionController.java:169)
at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:45)
at org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:169)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:117)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.fromBuildModel(DefaultBuildTreeLifecycleController.java:82)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner.runClientAction(AbstractClientProvidedBuildActionRunner.java:42)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:58)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:54)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:83)
at ....
Caused by: java.lang.IllegalStateException: Android BaseExtension not found.
....

libs.version.toml:
kspVersion = "2.2.10-2.0.2"
hiltVersion = "2.57.2"

cored build.gradle.kts :
alias(libs.plugins.hiltAndroid) apply false
alias(libs.plugins.kotlinAndroidKsp) apply false

модуль приложения build.gradle.kts :
alias(libs.plugins.kotlinAndroidKsp)
alias(libs.plugins.hiltAndroid)

Я обновил все свои библиотеки в libs.version.toml.
Полные коды:
Root build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.hiltAndroid) apply false
alias(libs.plugins.kotlinAndroidKsp) apply false
}

app build.gradle
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.kotlinAndroidKsp)
alias(libs.plugins.hiltAndroid)
}

android {
namespace = "m.adrien.testaddhilt"
compileSdk {
version = release(36)
}

defaultConfig {
applicationId = "m.adrien.testaddhilt"
minSdk = 24
targetSdk = 36
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
buildFeatures {
compose = true
}
}

dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.compose.ui)
implementation(libs.androidx.compose.ui.graphics)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.compose.material3)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)
}

libs.version.toml
[versions]
agp = "9.0.0-alpha10"
coreKtx = "1.17.0"
junit = "4.13.2"
junitVersion = "1.3.0"
espressoCore = "3.7.0"
lifecycleRuntimeKtx = "2.10.0"
activityCompose = "1.12.1"
kotlin = "2.2.21"
composeBom = "2025.12.00"
kspVersion = "2.2.10-2.0.2"
hiltVersion = "2.57.2"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
androidx-compose-ui = { group = "androidx.compose.ui", name = "ui" }
androidx-compose-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
androidx-compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
androidx-compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
androidx-compose-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
androidx-compose-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3" }
hilt-android = { group = "com.google.dagger", name = "hilt-android" , version.ref = "hiltVersion"}
hilt-compiler = { group = "com.google.dagger", name = "hilt-compiler" , version.ref = "hiltVersion"}

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlinAndroidKsp = { id = "com.google.devtools.ksp", version.ref ="kspVersion" }
hiltAndroid = { id = "com.google.dagger.hilt.android", version.ref ="hiltVersion" }


Подробнее здесь: https://stackoverflow.com/questions/798 ... -not-found
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»