Back

AndroidManifest.xml error

  • 0
  • Flutter
Binyamin
23 Jun, 2023, 04:55

Also, sometime in Android project, I use to open the Android project in Android Studio and let it sync.

TL;DR
Issue: AndroidManifest.xml error Solution: 1. Try adding a file called `playground_for_flutter_android.iml` inside the `android` folder. 2. Click on the elephant icon in Android Studio's top-right corner to make the errors disappear. 3. Manually sync Gradle to resolve any syncing issues. 4. If using Android Studio, open the Android project and let it sync. 5. Verify the `build.gradle` files and `gradle-wrapper.properties` file for any errors or missing dependencies. 6. Consider opening the Android project in Android Studio to sync and resolve any issues.
mitsy0_0
23 Jun, 2023, 04:56

um sorry didn't quiet get it, its already appwrite: ^8.1.0 right?

Binyamin
23 Jun, 2023, 04:57

Opps, sorry

Binyamin
23 Jun, 2023, 04:57

Same just without the carret ^

Binyamin
23 Jun, 2023, 04:57

I've fixed the snippet

mitsy0_0
23 Jun, 2023, 04:58

ok ok

mitsy0_0
23 Jun, 2023, 06:11

still the same, is it just happening with me?😩

Drake
23 Jun, 2023, 14:32

where exactly do you see this?

Drake
23 Jun, 2023, 14:36

i've never had this problem...but it looks like you're using android studio? I use VS Code

Binyamin
23 Jun, 2023, 14:38

Have you try this? To open android folder in Android studio and let it sync? to see if it complete the sync?

Binyamin
23 Jun, 2023, 14:39

Also can you share the first part of your android\build.gradle

TypeScript
buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.2.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.3.15'
    }
}

And your android\gradle\wrapper\gradle-wrapper.properties file?

Binyamin
23 Jun, 2023, 14:39
Drake
23 Jun, 2023, 14:48

my Flutter option is greyed out 🧐

Binyamin
23 Jun, 2023, 14:50

Yes, I think it's grey when the android part didn't have sync before.

So in that case I would open it manually and just check if it sync successfully

Drake
23 Jun, 2023, 15:06

still greyed out. my my project also has red squigglies under it πŸ‘€

Binyamin
23 Jun, 2023, 15:07

Ohh You're right clicking the project or the android folder?

Drake
23 Jun, 2023, 15:07

both

Binyamin
23 Jun, 2023, 15:08

Let met try with a brand new project.

Drake
23 Jun, 2023, 15:09
D5
23 Jun, 2023, 15:14

I think instead you should be able to sync gradle manually

D5
23 Jun, 2023, 15:14

There's an elephant icon in android studio top-right. If you click it, errors should disappear

Binyamin
23 Jun, 2023, 15:17

Good As I've opened it, I also got the grey line. Took a look here https://github.com/flutter/flutter-intellij

Adding file playground_for_flutter_android.iml inside the android folder helped out

The exact spot https://github.com/flutter/flutter-intellij/blob/master/flutter-idea/src/io/flutter/project/FlutterProjectStructureDetector.java#L115

Binyamin
23 Jun, 2023, 15:18

I'm using JetBrains almost exclusively So those file are generated when I first create the project.

Drake
23 Jun, 2023, 15:56

i get other errors now. not worth digging into πŸ˜†

Drake
23 Jun, 2023, 16:00

@mitsy0_0 definitely try this, though. I've seen stack overflow posts saying this fixes the problem

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more