Я не могу запустить свое приложение, потому что у меня есть проблемы в моем файле манифеста. Это говорит:
'com.diridou.mescoiffeurs.MainActivity' нельзя назначить 'android.app.Activity' меньше ... (Ctrl + F1)
Информация о проверке: проверяет ссылки на ресурсы внутри XML-файлов Android
MainActivity расширяет AppCompatActivity, но я не могу разрешить AppcompactActivity
Также у меня нет проблем с Graddle.
Я добавил:
1 °
android.enableJetifier=true
android.useAndroidX=true
в моем graddle.properties
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.diridou.mescoiffeurs">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
public class MainActivity extends AppCompatActivity {
}
Мои файлы Graddle выглядят так:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.diridou.mescoiffeurs"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
/*Dependencies de base */
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'android.arch.lifecycle:extensions:1.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
/*Firebase*/
implementation 'com.google.firebase:firebase-firestore:20.1.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}