when I run my program its throwing "ssl error" and "remote host terminated the handshake".
Currently I am using the below library in build.gradle. I have tried upgrading to 5.2.5 but in its website it shows they have stopped the service. Even tried other methods but nothing worked. How can I solve this?
repositories
{
url "https://mint.splunk.com/gradle/"
}
dependency
{
implementation 'com.splunk.mint:mint:4.4.0'
}
1)Tried adding
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
removed .gradle and .idea and ran the code
changed the sdk
accept non-trusted certificates automatically
added
systemProp.http.proxyHost=x
systemProp.https.proxyPort=y
systemProp.https.proxyHost=x
systemProp.http.proxyPort=y
but this throws error as x is not recognised
Related
Azure pipeline is trying to download a resource from 'https://dl.bintray.com/microsoftazuremobile/SDK/'.
The same thing had been working for a year so Gradle config doesn't seem an issue but for a week now it is failing randomly.
Actual error :
> Could not get resource 'https://dl.bintray.com/microsoftazuremobile/SDK/com/huawei/hms/update/2.0.6.302/update-2.0.6.302.pom'.
> Could not GET 'https://dl.bintray.com/microsoftazuremobile/SDK/com/huawei/hms/update/2.0.6.302/update-2.0.6.302.pom'. Received status code 502 from server: Bad Gateway
Any ideas how to fix?
Seems like the repo has been moved and docs are not updated.
Changed the repo from bintray to mavenCentral
- maven { url 'https://dl.bintray.com/microsoftazuremobile/SDK' }
+ mavenCentral()
It works perfectly
I've been trying to run my react native application, but it crashed when started and the debugger didn't return any error, so I checked the log cat in Android Studio and it shows me the following error: java.lang.NoClassDefFoundError: Failed resolution of: Lcom / google / firebase / iid / FirebaseInstanceId;
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceId"
The React-Native version that I am using is: 0.61.5
And the version of react-native-firebase that I have installed is 5.6.0
It has already been a recent failure, since previously the app worked correctly and I have not made any changes to the firebase integration either
To debug this, first I would suggest running adb logcat and seeing what Java error you are getting. If it errors out on the not being able to find the required Java classes, then try adding the following to your project:
app/build.gradle file (dependencies section):
implementation 'com.google.firebase:firebase-iid'
(You might need to provide a version for this package as well)
I have getting same error, I fixed this error by uninstalling old version and installing new version of push notification.
uninstall:
npm uninstall react-native-push-notification
install:
npm i react-native-push-notification
since react-native-push-notification upgraded to new version v7.x so that, while installing app it give above error.
checkout this -> https://www.npmjs.com/package/react-native-push-notification
There is an issue, in react-native-push-notification (FirebaseInstanceId has been deprecated and now removed). Sounds like you are using a lib that is using that that here. It should be fixed later on, but for now you can add the following to your android/build.gradel file.
buildscript {
ext {
...
firebaseMessagingVersion = "21.0.0"
}
I had also to update these libs (you will get compile errors if you don't, so you may have others to update):
- "react-native-device-info": "^5.5.8",
+ "react-native-device-info": "^8.1.3",
- "react-native-push-notification": "^7.3.0",
+ "react-native-push-notification": "^7.3.1",
This is in reference to this issue
wix/react-native-notifications
This lib having issue with refreshToken() Method.
Didn't find class "com.google.firebase.iid.FirebaseInstanceId"
so just remove / reinstall the package, if still error is coming then we have to wait for next bug fix release of this lib or
we can manually change native code to make it working.
below is link of lib
https://github.com/wix/react-native-notifications/issues?q=FirebaseInstanceId
I want to test our app with detox. On IOS it works fine, but it doesn't work yet on Android.
So when I run the detox test the simulator will open, but the app won't be started. In the logs is stated that the build was successful. Besides that when the test have failed, I can open the app on the simulator and everything works. (The tests are not ready started yet, they are in the setup fase when the issue happens)
This is the error message I get:
DetoxRuntimeError: Failed to run application on the device
HINT: Most likely, your tests have timed out and called
detox.cleanup() while it was waiting for "ready" message (over
WebSocket) from the instrumentation process.
at EmulatorDriver._getInstrumentationCrashError (/Users/corinejanssen/PycharmProjects/de-selfcare/frontend/node_modules/detox/src/devices/drivers/android/AndroidDriver.js:175:12)
at EmulatorDriver.instrumentationCloseListener (/Users/corinejanssen/PycharmProjects/de-selfcare/frontend/node_modules/detox/src/devices/drivers/android/AndroidDriver.js:142:67)
at EmulatorDriver._terminateInstrumentation (/Users/corinejanssen/PycharmProjects/de-selfcare/frontend/node_modules/detox/src/devices/drivers/android/AndroidDriver.js:166:12)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async ChildProcess. (/Users/corinejanssen/PycharmProjects/de-selfcare/frontend/node_modules/detox/src/devices/drivers/android/AndroidDriver.js:266:7)
{ name: 'DetoxRuntimeError' }
Versions I use:
Detox: 16.2.0
jest: 25.0.1
node: 12.16.0
Is someone who has this issue and solved it?
I solved this issue, by trying a lot of things. I think it was related to a missing dependency in the android/build.gradle.
For the exactness I put all the dependencies we add to this file:
dependencies {
classpath "com.android.tools.build:gradle:3.4.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
I try to run "react-native android" but got the following errors
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException:
com.android.ddmlib.InstallException: Failed to finalize session :
Unknown failure (Error: java.lang.SecurityException: Requires
android.permission.ASEC_CREATE permission)
I have no problem running on emulator, but if i try to run on my phone, the error occurs
I try google but have zero results. Any ideas?
This problem appeared to me when I upgraded Android Studio and then Gradle.
To solve the problem I returned the version of Gradle:
Buildscript {
Repositories {
Jcenter ()
}
Dependencies {
classpath 'com.android.tools.build:gradle:2.x.x'
...
}
}
As of I face this issue, had searched a lot for the solution.
Later on came to know maybe this issue occurs due to multiDexEnabled true in your
app/build.gradle in defaultConfig{}
after Successful Sync of Project what you have to do is :
list out your devices >> adb devices
You can see your listed deviceId like 1234553231221
run your project >> react-native run-android --deviceId your_device_id
My problem solved after change preferred install Location sdcard to phone Storage in mobile setting. hope this help you
Recently when I started my android studio I got an annoying error in event log:
PicoPluginExtensionInitializationException: org.jetbrains.plugins.gradle.GradleManager has unsatisfied dependency: class org.jetbrains.plugins.gradle.service.GradleInstallationManager among unsatisfiable dependencies: [[class org.jetbrains.plugins.gradle.service.GradleInstallationManager]] where DefaultPicoContainer (root) was the leaf container being asked for dependencies.
and when i try to sync the gradle another message appear :
IllegalArgumentException: Can't retrieve external system settings for id 'Gradle'. Reason: no such external system is registered
how can i fix it ?