Debugging Error occur while uploading android app on google play - android

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..

Related

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

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

Third party API request failed on production but works on stagging. How to fix this? [duplicate]

This question already has answers here:
How to allow all Network connection types HTTP and HTTPS in Android (9) Pie?
(9 answers)
Closed 3 years ago.
I am new to react native. Now I'm debugging some bugs. I debug with android device. There's a feature that called third party API (it using http). One of the param is location (latitude and longitude). It works on my local or stagging. But in production (download my app from Google Play Store) it returns network error, failed to connect. In some phone with works normally. It works on my friend's phone (Android 7, mine is Android 9).
I already tried to disable PlayProtect, download it, then allow location. But it still not working. Then I tried to go to dev setting when debugging, uncheck JS Dev Mode, and check JS Minify, it works! Why? Is there something wrong with code or it's come from API?
It's a duplicate question , but to allow http requests in production , you must add android:usesCleartextTraffic="true" to your AndroidManifest.xml in your project directory.
`
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/ic_launcher"
android:allowBackup="false"
android:theme="#style/AppTheme"
android:usesCleartextTraffic="true"
tools:ignore="GoogleAppIndexingWarning">
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<activity
android:name=".MainActivity"
android:label="#string/app_name"/>
</application>
`
Please find the link to the answers in a brief format Add http

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 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.

Categories

Resources