APK is not releasing in react native it is giving me error continously - apk

I have generated new key store then also it is giving error continuously that password incorrect, and few others error message also
I have tried to clean the gradlew but it also not helped me .
Doing this (cd android && ./gradlew installRelease) after few minutes it throws these errors.
What went wrong:
Execution failed for task ':app:packageRelease'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key my-key-alias from store "/Users/ansit_macos2/Desktop/DNCR/DNCRPropertyAPP/android/app/my-release-key.keystore": keystore password was incorrect
A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key my-key-alias from store "/Users/ansit_macos2/Desktop/DNCR/DNCRPropertyAPP/android/app/my-release-key.keystore": keystore password was incorrect
A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key my-key-alias from store "/Users/ansit_macos2/Desktop/DNCR/DNCRPropertyAPP/android/app/my-release-key.keystore": keystore password was incorrect
A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key my-key-alias from store "/Users/ansit_macos2/Desktop/DNCR/DNCRPropertyAPP/android/app/my-release-key.keystore": keystore password was incorrect

Related

Codemagic `Fetch signing files` script exited with status code 9

Hello i'm new at flutter and don't have a mac, i'm use Codemagic, i have the keys been set at the codemagic.yaml but get the error:
Log:
Executing AppStoreConnect action fetch-signing-files failed unexpectedly. Detailed logs are available at "/var/folders/m7/h1mg7c7x40ddjz6mxjxm3htr0000gn/T/codemagic-23-11-21.log". To see more details about the error, add `--verbose` command line option.
Executing AppStoreConnect action fetch-signing-files failed unexpectedly. Detailed logs are available at "/var/folders/m7/h1mg7c7x40ddjz6mxjxm3htr0000gn/T/codemagic-23-11-21.log". To see more details about the error, add `--verbose` command line option.
Build failed :|
Step 3 script `Fetch signing files` exited with status code 9
Build failed :|
Step 3 script `Fetch signing files` exited with status code 9
Script part of the codemagic.yaml:
- name: Fetch signing files
script: |
app-store-connect fetch-signing-files $BUNDLE_ID --type IOS_APP_STORE --create
Am i forget anything?
I believe this PR introduces better error handling for such kind of errors. The PR was merged early today and you can run a new build to see detailed error message.
And from the changes it seems you provided a wrong value for private key.

cant start session of Appium server version 1.15.1

This error message is displaying:
An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'F:\\gautam\\android\\platform-tools\\adb.exe -P 5037 -s 192.168.0.115\:5555 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.os.Binder.execTransact(Binder.java:735)'; Code: '255'`enter code here
An error tells you: Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
Try following steps:
In your phone developer options (Security settings), enable USB Debugging or (or and) Disable permission monitoring. All of these settings are in your dev options.

Could not find out the solution for following error

We trying to build sencha on "ios" platform. But after performing command- sencha app build -run native, it gives following error.
Command Used: sencha app build -run native
The following error occurred while executing this line:
/Users/test/Desktop/UNHR_New 2/UNHR2/UNHR/UN Human Rights/UNHR/.sencha/app/build-impl.xml:436: The following error occurred while executing this line:
/Users/test/Desktop/UNHR_New 2/UNHR2/UNHR/UN Human Rights/UNHR/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
/Users/test/Desktop/UNHR_New 2/UNHR2/UNHR/UN Human Rights/UNHR/.sencha/app/cordova-impl.xml:66: The following error occurred while executing this line:
jar:file:/Users/test/bin/Sencha/Cmd/6.2.1.29/sencha.jar!/com/sencha/ant>/antlib.xml:674: shellscript returned: 1
I think you should use the root account to execute the command.

gradlew is not returning error status of flyway command

When gradlew runs flywayRepair or flywayMigrate, return status is always 0 (zero) regardless of success or failure:
./gradlew --quiet -Pflyway.initOnMigrate=true -Pflyway.url=jdbc:mysql://localhost:3306/mars flywayRepair
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':common:flywayRepair'.
> Error occurred while executing flywayRepair
Unable to obtain Jdbc connection from DataSource (jdbc:mysql://localhost:3306/mars) for user 'flyaway'
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Connection refused
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Exit status from flywayRepair for mars is 0
Both gradle and gradlew will return exit status 1 for a failed build, so this is likely a problem with your shell script. Perhaps see Bash - how to check the exit status of pipe command.
You are checking the exit status of /usr/bin/tee in your shell script, as this is the last executed command and this will of course always be 0 in your case.
You should test $PIPESTATUS[0] instead as documented on this page: http://tldp.org/LDP/abs/html/internalvariables.html
This sounds like a Gradle issue. I suggest you file an issue with them.

Gradle how to show build failed message

How to creat a task to show build failed message in the end?
I have tried
task.setEnabled(false)
but it shows BUILD SUCCESSFUL. I tried also
ant.fail('message')
It worked and stoped the tasks. But is there any function to show BUILD FAILED message instead of throwing an exception?
The way to programmatically fail a build is throw new GradleException("helpful message").

Resources