I can't find any reason why the store doesn't accept any apks on new apps and others, it every time return please upload another apk
1.0, app code 1 brand new app returns same error with 2 different dev accounts on 4 different vpn(Netherlands/germanmy/singapur..) and 2 different browsers?(opera/safari) also I have deleted cookies etc
my signin in that project is react native
signingConfigs {
release {
storeFile file("key.jks")
storePassword "dosa"
keyAlias "dsa"
keyPassword "dsa"
v2SigningEnabled true
}
}
You will have to set
android:debuggable="false"
in application tag of the manifest file. This is important for uploading your apk.
and if this already set properly and Google Playstore still rejects your APK, then modify your build.gradle
signingConfigs {
debug {
storeFile file("my-keystore-file.jks")
storePassword "my-password"
keyAlias "my-alias"
keyPassword "my-password"
}
}
This will set your own key for debugging.
If your problem still exists then I would suggest reading the documentation, you can read it here it's given properly.
1.0, app code 1 brand new app returns same error with 2 different dev accounts on 4 different vpn(Netherlands/germanmy/singapur..) and 2
different browsers?(opera/safari) also I have deleted cookies etc
I tried with Firefox and it worked thanks...
Related
I recently uploaded my first Kotlin-Android app to a closed testing (alpha) track in Google Play Console. The review was complete and I shared my link to some testers. Unfortunately the release bundle has major bugs that are not present in the debug APK! (the one that generates automatically when I hit "Run" in Android Studio). I checked both bundles on my device and the debug version works perfectly fine while the release is unusable. Is there anyway to debug a release version??? Or maybe create a debuggable build that mimics it's behaviour (as a release build is set to be undebugable for safety reasons...). Is there a way to see the app logs? (or are they removed in the release build?)
I think it's important to mention that all bugs are related to Firebase actions. My Firebase project have all the needed "SHA certificate fingerprints" (SAH-1 & SHA-256 for the debug, upload & app-signing keys). Maybe another thing is missing?
Maybe the specific bugs can point to the root of the difference, so these are my 2 biggest bugs:
Each user document holds a list of items which is shown in a recyclerView in one of his screens. In the release version no item is shown. I checked the Firestore console and the items are added successfully (from any version) and they show when I sign in the same user with the debug version.
Can't sign in via phone number (in Firebase auth pre-built UI). The other methods work fine. I can even link a phone to an existing account, but the pre-built sign-in flow stops after I enter a phone number and resets to the initial screen. In the debug version that works fine.
Did someone encounter anything like that?
Any help would be appreciated.
I found the way to debug the release bundle. The problem was that the "release" build variant used the default signing key - the debug key. I had to Configure the build process to automatically sign my app with a secured key. At the end, I have the following code in my "build.gradle (:app)" file:
...
def keystorePropertiesFile = rootProject.file(<keystore.properties file location>)
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
signingConfigs {
ionce {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
...
buildTypes {
release {
...
signingConfig signingConfigs.ionce
}
}
...
}
...
(I choose to Remove signing information from my build files. If you do, pay attention to the "\" orientation in the storeFile field as the error is not very informative. This answer helped me)
If anyone also encounter one of the two issues I mentioned, here are the solutions:
The difference between the build variants was that in my "release" variant I use minifyEnabled true, which changes the attributes' names to minify the code. When getting the document from Firestore it did not match the object structure and failed to load the list. The solution is in this answer.
This one was not related to the difference in build types - seems I didn't check the feature after upgrading firebase-auth library in my gradle. Upgrading the firebase-ui-auth library, like in this answer, did the trick :)
you can add this debuggable true in your gradle file
release {
debuggable true
minifyEnabled false
shrinkResources false
}
this will help you debug the release version, make sure that minifyEnabled and shrinkResources are false
to run the Release version of the app with the Release Keystore use this
signingConfigs {
release {
storeFile file('file location')
storePassword 'your store password'
keyAlias 'your key alias'
keyPassword 'your key password'
}
}
and then add in the variant of release this
release{
signingConfig singingConfigs.release
}
I read many similar content but I couldn't find a solution.
I am a flutter developer, yesterday i signed an android application and sent it to google play.
I cannot find the key file I created or I am not sure if its name is the key.
I created it yesterday on this mac computer , but today there is no such file. I only have a file named 'private_key.pepk' on my desktop.
Can I find out where the path I chose when signing for the first time from my Android project? i need your help
Android developer that hasn't signed a Flutter app yet, but in build.gradle you should have something like this:
signingConfigs {
release {
storeFile file("EITHER A PATH OR RELATIVE PATH")
storePassword sPassword
keyAlias kAlias
keyPassword kPassword
}
}
I made this Android app that fetches some data using AI Platform Training & Prediction API from Google Cloud Platform. For this app to work it needs to be approved by GCP using SHA-1 Fingerprint certificate. I am making this app as an assessment for module Im taking at the university, so, when the teacher will open my Android Studio project it will have a different SHA-1, so the app will not fetch the data...
Any Ideas how I might be able to maybe set a permanent SHA-1 key for my project, so when the teacher will open the project, Android Studio will not generate a new one?
Thank you!
The SHA-1 is based on the app signature. Since this is for a project I suggest you do the following (never do this in a production app).
Create a new signing key (Build -> Generate Signed Apk -> APK ->
Create New)
Move the signing key to your project's folder
Add this to your app.gradle
android {
signingConfigs {
debug{
storeFile file("your_key.keystore")
storePassword 'password'
keyAlias 'alias'
keyPassword 'password'
}
release {
storeFile file("your_key.keystore")
storePassword 'password'
keyAlias 'alias'
keyPassword 'password'
}
}
}
EDIT: Forgot to mention, run the signingReport gradle task after you do this to get your new SHA-1 that you have to add to your project.
after creating the .keystore file and running the report I get the new SHA-1 key, but the build fails. I get this:
Entry name 'play-services-ads-identifier.properties' collided
I have problem with Google Drive.
After I'm clicking on dialog with email Im getting error:
statusCode=SIGN_IN_REQUIRED
I resolved this problem by adding in gradle
debug {
signingConfig signingConfigs.config
}
signingConfigs {
config {
keyAlias '******'
keyPassword '******'
storeFile file('C:/Users/.android/debug.keystore')
storePassword '******'
}
}
But the question is it is possible to work without this file and this options in gradle?
I'm pushing this code to repository and tests are failed in case of missing debug.keystore file.
Code will be published and I'm not sure can also share this debug.keystore file?
I know the easiest is to add this file in to directory app and change the path.
But maybe someone know better solution?
You may want to check Authorizing and Using REST APIs which shows how to authorize with Google and use Google REST APIs when you want your app to access Google APIs with the user's Google account over HTTP. There are also given approaches that you may try for your app.
Check the following to authorize your Android app:
Configure build dependencies in your app's root-level build.gradle file.
Use the Google-Provided authorization UI for REST API access. Use the Auth.GoogleSignInApi method to give users of your Android app a Google-provided authorization UI that handles all of this.
Specify scopes by creating a GoogleSignInOptions object with the new scopes that you want to request by calling GoogleSignInOptions.Builder.requestScopes.
You can get an Android Account object as part of your Google Sign-In result, and you can later instantiate a GoogleAccountCredential object with it.
Use GoogleAccountCredential and the client library for REST API access.
For more information, please also see Authorizing Android Apps.
I resolved this problem by adding in gradle
debug {
signingConfig signingConfigs.config
}
signingConfigs {
config {
keyAlias '******'
keyPassword '******'
storeFile file('C:/Users/.android/debug.keystore')
storePassword '******'
}
}
I am getting this error while i try to run my project from Android Studio to Genemotion. It was working perfectly fine and then I signed the app to test it on other phones and ever since I am unable to run it from android studio. No idea what to do, I tried messing around with Gradle Tasks but they didn't workout.
I have already seen other posts like these Getting error :app-release-unsigned.apk is not signed but they didn't help
I you don't want to add the to your Gradle file the signing information, you can just change to the debug mode for your current build type:
If you want to add the signing information to your build.gradle just do the following:
signingConfigs {
release {
storeFile file("release.keystore")
storePassword "******"
keyAlias "******"
keyPassword "******"
}
}