When I create new project, I have 4 errors:
Cannot access 'androidx.activity.ComponentActivity' which is a supertype of 'com.example.domaci33.SignUpActivity'. Check your module classpath for missing or conflicting dependencies Cannot access 'androidx.activity.ComponentActivity' which is a supertype of 'com.example.domaci33.SignUpActivity'. Check your module classpath for missing or conflicting dependencies Cannot access 'androidx.activity.ComponentActivity' which is a supertype of 'androidx.fragment.app.FragmentActivity'. Check your module classpath for missing or conflicting dependencies Cannot access 'androidx.activity.ComponentActivity' which is a supertype of 'androidx.appcompat.app.AppCompatActivity'. Check your module classpath for missing or conflicting dependencies
I have tried to change versions in build.gradle dependencies but nothing helped.
My dependencies:
dependencies {
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.activity:activity-ktx:1.10.0-alpha02"
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}
New contributor
Ana P. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.