Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android-W/PackageManager: Package named<> does not exist

I published an android app and after a while, when I wanted to edit it and publish a new version. So I imported it in Android Studio.

My problem is the Android Studio does not run my app on my device and shows this message:

enter image description here

What can I do to fix it?

like image 448
faeze saghafi Avatar asked Mar 20 '26 11:03

faeze saghafi


1 Answers

according to this link I add these attributes on my app's build.gradle and the problem is gone :)

// Gradle Plugin 2.0+  
 android {  
   defaultConfig {  
     vectorDrawables.useSupportLibrary = true  
    } 

}
or

/

/ Gradle Plugin 1.5  
 android {  
   defaultConfig {  
     generatedDensities = []  
  }  

  // This is handled for you by the 2.0+ Gradle Plugin  
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }  
 }
like image 178
faeze saghafi Avatar answered Mar 22 '26 23:03

faeze saghafi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!