APK isn't installed even though I use generated Signed APK - android

I think there's some update for blocking the installation of APK from outside. Normally, I used to install apks with generated signed apk. But, recently It doesn't work at all. I deleted the app properly, So, it has no issue with the previous app. Everything is checked and filled up.
Is there is changes with Android OS?

I was using demo app provided by third party company.
And the problem was an attribute of manafiests.xml
It was like this:
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:testOnly="true"
android:theme="#style/AppTheme">
And the solution was deletng testOnly attribute of application tag like this:
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
What testOnly does is when it's enabled it can only be installed by adb and not able to publish on Google Play.
So, it was not Android OS version problem.
For more information: https://developer.android.com/guide/topics/manifest/application-element

Related

Error compiling after AndroidX installation

I recently installed the AndroidX libraries. My problem now:
Didn't find class "androidx.core.app.CoreComponentFactory"
I get an error message. My Mobile App closes after opening screen.
Have you tried this?
Go to Manifest, then add inside the application.
<application
android:allowBackup="true"
android:appComponentFactory="anystrings be placeholder"
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:replace="android:appComponentFactory">
Perhaps this is one of the reasons!

Android 9 (Pie) - Not able to capture any api (native / web) through network monitoring tools such Charles proxy and Fiddler

I am trying to capture apis triggered from native app and website through Charles proxy / Fiddler , But I am not able to see any api there.
I have set manual proxy as well.
I am able to see apis for Android 8 and below . But not working for Android 9 .
In Android 9 , I could the screens getting loaded completely , but still I am not able to see the apis in any monitor.
Add android:usesCleartextTraffic="true" in AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your pckag">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:usesCleartextTraffic="true">
</manifest>

Android Google Analytics - adding to which xml?

I was instructed to add the following to some file but not sure which one, please help me.
Mark application entry – Manifest
Add Analytics as application name on Manifest entry as below :
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme"
android:name=".Analytics">
but my current project manifest already have the following:
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
What should it become now?
This means you have Analytics application class in your app
android:name=".Analytics"
will consider as your application base class.
for more info please refer this link http://developer.android.com/reference/android/app/Application.html
Assuming you are using SDK v4, use the link
The documentation is very straight forward so you shouldn't have any issues integrating it.

Debugging application gives me a red line

On Manifest, I get an error for Debugging
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:debuggable="false">
I am trying click for apk in Android tools >> Export signed Application Package" but I don't know how I got an error.
The Lint Warning for it "Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one"
Can anyone help?
When you Create the Signed .APK / (release .APK) means, you must remove the android:debuggable="false" it is only for debugging purpose not for release.
change this
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:debuggable="false">
Into like this
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name">
Remove
android:debuggable="false"
The error is telling you not to hard code it (omit it) and it will assign the value itself depending on what you are doing. If you tell AS to debug, it will set it to debug. If you export your apk it will set it to false.

Debugging Error occur while uploading android app on google play

I am submitting my APP to GOOGLE PLAY, while uploading Google show error that i should OFF debugging in order to upload my app, kindly help me out, i don't know how to OFF debugging.
in your manifest file paste this
<application
android:name="#string/app_name"
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:debuggable="false"
android:label="#string/app_name"
android:theme="#android:style/Theme.Black.NoTitleBar" >
and also the tips from #danidee will get you set..

Categories

Resources