'Can't import module in Android Studio Arctic Fox
Solution 1:[1]
First
1- copy your-module folder in your project directory
2- Add this in settings.gradle (include ':your-module')
3- Click Sync
4- Finish
Solution 2:[2]
Upgrading to Arctic Fox 2020.3.1 Patch 4 did the trick for me.
Solution 3:[3]
My version of the Workaround
Add a new folder "lib" (or whatever name) inside the project path
Add (aar /jar) to the new folder called "lib"
Add the path of the module to app's build.gradle (apps)
dependencies { implementation project(path: ':lib') implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') }
- Add the "build.gradle" to the "new folder" (just create the file if you don't have one)
This how my build.gradle look inside
configurations.maybeCreate("default")
artifacts.add("default", file('yourArrOrJar.aar'))
- include "lib" in settings.gradle
include ':app',':lib'
Solution 4:[4]
I have fund out that it is a bug. Many people are facing the problem using version 2020.3.1. Version 4.2.2 is working well in this case. Here are some links about this bug: https://issuetracker.google.com/issues/195340090 https://issuetracker.google.com/issues/191209456 https://issuetracker.google.com/issues/195318441 https://issuetracker.google.com/issues/195336461
Solution 5:[5]
Latest Android Studio Patch Fixes this Bug. Make sure you update to Security Patch 4 or above.
https://androidstudio.googleblog.com/2021/12/android-studio-arctic-fox-202031-patch.html
Initial Issue : https://issuetracker.google.com/issues/191209456?pli=1
Solution 6:[6]
This issue has been resolved in
Android Studio Arctic Fox | 2020.3.1 Patch 4 (December 2021)
Also mentioned in Release Notes
Solution 7:[7]
I have found that using Android Studio Chipmunk resolves the issue but it might not be the case for the rest of y'all
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | fatemeh2sh |
| Solution 2 | Rusiru Boteju |
| Solution 3 | user3826696 |
| Solution 4 | |
| Solution 5 | androidbash |
| Solution 6 | Deven |
| Solution 7 | Matthew Delloro |

