Situation
I'm getting this type of error in my logcat and I do not know exactly what it can be. Although this error is not compromising the functioning of the application (so it is perceived) being compiled from Eclipse , the project still continues to run normally. This project is not in the Google Play Store , but it has a version control server. Whenever a new version of the application is generated, it automatically receives a notification stating that it has this new version to be installed.
Message
java.lang.RuntimeException: Unable to instantiate
application android.app.Application:
java.lang.IllegalStateException: Unable to get package info for br.com.meuapp;
is package not installed?
Moment of error
The error appears exactly after compiling the code to generate a new .apk
for reinstallation using USB Debug .
Setting the Environment
- IDE: Eclipse Mars 2
- Target SDK: Android 2.3.3 - Api Level 10
- Test Device: Smartphone Lenovo Vibe A7010
Note
In the project the INSTALL_PACKAGES
permission is used in which, by default, an error message is displayed that can only be compiled if you run the project CLEAN .
<uses-permission android:name="android.permission.INSTALL_PACKAGES" />
Permission is only granted to system apps
Questions
I need these questions to be clarified about the error, as some crash may happen on a device other than the test device.
What caused this error? What can happen if the error persists? How to fix this error?