0

I am trying to compile my ionic app in android studion but receiving this error

error: package androidx.activity.result does not exist import androidx.activity.result.ActivityResult; in android studio

How i can solve this issue

buil.gradle

dependencies {
    implementation fileTree(dir: 'src/main/libs', include: ['*.jar'])
    implementation "org.apache.cordova:framework:$cordovaAndroidVersion"
    // SUB-PROJECT DEPENDENCIES START

    // SUB-PROJECT DEPENDENCIES END
}
web pakistan
  • 444
  • 1
  • 4
  • 16

1 Answers1

0

Did you check this before? Please try it. You need to add androidx.appcompat:appcompat and androidx.activity:activity dependencies

Hassan Alizadeh
  • 103
  • 1
  • 8
  • Now i am facing this issue `error: cannot find symbol import com.getcapacitor.PermissionState; ^ symbol: class PermissionState location: package com.getcapacitor` – web pakistan Jul 03 '21 at 19:40
  • @webpakistan I think you have cloned a project but you didn't copy the dependencies. I think you'll face these issues again on this project. It is better to find the dependencies. – Hassan Alizadeh Jul 03 '21 at 19:53
  • I just added camera plugins – web pakistan Jul 03 '21 at 19:54