Reputation: 21
Been having trouble with this one for weeks and searched throughout forums for solutions.
I have an Android App that can be installed on some brands of devices but won't install on others. On some devices It keeps getting a package error every time i install it. And in some devices it even hangs just by looking at the APK file.
But if i plug the device that has a package error on the PC and install the apk through android studio, it will install the app.
Is this some kind of hardware problem? Or some kind of hardware compatibility issue?
The brand that i'm sure it will install is Samsung. Brands that it won't install is LG or ASUS.
I already checked the versions and almost all the devices has the same SDK api.
Min-SDK: 15 Target-SDK: 25
I even updated Android Studio and gradle to latest versions.
Upvotes: 1
Views: 3236
Reputation: 162
I had the same problem and solved it by allowing cleartexttraffic or you can also convert http to https .
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
<uses-permission android:name="android.permission.INTERNET" />
<application
`enter code here` ...
android:usesCleartextTraffic="true"
...>
...
</application>
</manifest>
Upvotes: -1
Reputation: 2860
I had the same issue. I forgot to add same permissions in manifest. I added these permissions in manifest as well as mike said. Then clean and build and worked like a charm.
Conclusion: If you are giving the permissions programmatically in class then make sure the same permissions you must declare in AndroidManifest.xml file.
make sure you have an icon and that the image is no bigger than 60 by 60 pixels
App icon should be png formtat
remove unused images and large size image in the Media Section Now it will be works.
Upvotes: 0