Error: Could Not Get Unknown Property 'com' For Root Project 'myapp' Of Type Org.gradle.api.project
I want to try out Android Studio. I have a fresh installation on Ubuntu Linux. When I create new project File->New->New Project... Some files are created and I get error
Solution 1:
I solved it in this mode:
1) Go to File;
2) Invalidate Caches/Restart...
3) Click on Just Restart...
Now go on explorer:
1) this PC/Local Disk/Users/user
2) now delete the folder called: ".gradle"
3) Launch Android Studio
4) Wait for uploads
5) And now click sync
It will probably give you an error, click on written underlined in blue under the error, and wait;
FINISH
Solution 2:
The problem might be the caches files in the .gradle
folder is corrupted and needed an update. the best way is to delete cache file in your .gradle
folder.
Steps:
- Delete caches folder in the
.gradle
folder "You can find it on Mac /Users//.gradle" - Go to File and Invalidate Caches/Restart
- AS will restart and the build should now Sync.
Solution 3:
- Go to build.gradle
- dependencies classpath
- Click classpath suggestion then
- Click Invoke upgrade assistant for upgrade to 4.2.2
Post a Comment for "Error: Could Not Get Unknown Property 'com' For Root Project 'myapp' Of Type Org.gradle.api.project"