Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Setup Issues

I am trying to get started with Android Studio I have installed it on several PCs and have used fresh downloads and I keep getting the same issues: - Cannot resolve symbol 'fun' or Cannot resolve symbol 'view'. I guess this may be all symbols but these at the only ones I am trying to use now - Objects do not show up on screen when I am trying to design apps As I said, I have done this on several PCs now and have tried many steps suggested on SO and other forums (such as Cleanup, Invalidate Cache, adding SDKs, etc) and still get the same results. Each time these have been clean installs with default settings so I think I must be missing a step or something. Any advice? Ta

like image 629
rriggs Avatar asked Feb 13 '26 18:02

rriggs


1 Answers

Make sure your project level build.gradle contain the gradle version same as android studio version

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3' //3.1.3 is the android studio version
    }
}
like image 118
Anbarasu Chinna Avatar answered Feb 15 '26 07:02

Anbarasu Chinna



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!