Android - Namespace not specified error

I have an Ionic vue project. When I open it on Android Studio I get this error

Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

android {
    namespace 'com.example.namespace'
}

I checked the build.gradle file and naspace is already in there.

To make sure that my project does not have anything wrong, I created a new Ionic Vue app, added android and opened it on Android Studio but still I get the same error.

My Android Studio version is Android Studio Giraffe | 2022.3.1 Patch 2

What’s your Capacitor version?

That happens when some plugin have not moved the package to the namespace, but capacitor should be patching that for you, unless you are using an old version.

@julio-ionic

Here is my package.json file
I created this project 3 weeks ago

{
  "name": "mobileApp",
  "version": "0.0.1",
  "private": true,
  "description": "An Ionic project",
  "scripts": {
    "build": "vue-tsc && vite build",
    "test:unit": "vitest",
    "test:e2e": "cypress run",
    "lint": "eslint",
    "dev": "vite",
    "preview": "vite preview"
  },
  "dependencies": {
    "@capacitor/app": "5.0.6",
    "@capacitor/core": "^5.2.3",
    "@capacitor/haptics": "5.0.6",
    "@capacitor/ios": "5.2.3",
    "@capacitor/keyboard": "5.0.6",
    "@capacitor/status-bar": "5.0.6",
    "@googlemaps/js-api-loader": "^1.16.2",
    "@ionic/vue": "^7.0.0",
    "@ionic/vue-router": "^7.0.0",
    "@vuelidate/core": "^2.0.3",
    "@vuelidate/validators": "^2.0.4",
    "axios": "^1.4.0",
    "ionicons": "^7.0.0",
    "moment": "^2.29.4",
    "swiper": "^10.2.0",
    "vue": "^3.2.45",
    "vue-router": "^4.1.6",
    "vue3-circle-progress": "^1.0.7",
    "vuex": "^4.0.0"
  },
  "devDependencies": {
    "@capacitor/cli": "5.2.3",
    "@types/googlemaps": "^3.43.3",
    "@vitejs/plugin-legacy": "^4.0.2",
    "@vitejs/plugin-vue": "^4.0.0",
    "@vue/cli-plugin-vuex": "^5.0.6",
    "@vue/eslint-config-typescript": "^11.0.2",
    "@vue/test-utils": "^2.3.0",
    "cypress": "^12.7.0",
    "eslint": "^8.35.0",
    "eslint-plugin-vue": "^9.9.0",
    "jsdom": "^22.1.0",
    "typescript": "^5.1.6",
    "vite": "^4.3.9",
    "vitest": "^0.32.2",
    "vue-tsc": "^1.0.24"
  },
  "type": "module"
}

That version should have the fix, but also you don’t have any capacitor plugin that could cause those issues, so it’s weird that you are getting that error.