Categories
Development System & Network

long_running_recognize() function raises an SSL exception when run in concurrent.futures.ThreadPoolExecutor

I use long_running_recognize from speech_v1p1beta1.SpeechClient(). I’ve encountered some problem when I run long_running_recognize in parallel using concurrent.futures.ThreadPoolExecutor. My error is following: exception calling callback for <Future at 0x7f4ed4443dd8 state=finished raised Error> Traceback (most recent call last): File “/usr/lib/python3.6/concurrent/futures/_base.py”, line 324, in _invoke_callbacks File “/data/venvs/archSpeechRecoVenv/lib/python3.6/site-packages/google/auth/transport/grpc.py”, line 75, in wrapped File “/usr/lib/python3.6/concurrent/futures/_base.py”, line 425, in result File […]

Categories
Development

Error Caused by: java.lang.reflect.InvocationTargetException

Im trying to make a simple memory game, by now I only done the XML code. but for some reson i cant understand, at the logcat i get an error Caused by: java.lang.reflect.InvocationTargetException at this java line:setContentView(R.layout.activity_main);. this line was wrote by the app when i created it automatically. here is my XML code: <?xml […]

Categories
Development

Kivy’s 3D rendering (monkey rotation) apk crashes on start

Versions: Python: python3 OS: Android Kivy: v1.11.1 Kivy installation method: buildozer I took Kivy’s example 3D Rendering (rotation monkey head) app, on Linux(Ubuntu) and Windows 7 application works fine, (run it from python console), but when I compile in apk and try to run on Android phone its crashes! Another app without shader(OpenGL2) works on […]

Categories
Development HTTP

Rejecting re-init on previously-failed class in OkHttp

I’m trying to upload an image to my server using flask back end which will handle the file to save in a folder and OkHttp in android. but I get this error in android: I/art: Rejecting re-init on previously-failed class java.lang.Class<okhttp3.internal.platform.ConscryptPlatform$configureTrustManager$1>: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/conscrypt/ConscryptHostnameVerifier; at okhttp3.internal.platform.android.SocketAdapter okhttp3.internal.platform.android.ConscryptSocketAdapter.buildIfSupported() (ConscryptSocketAdapter.kt:64) at void okhttp3.internal.platform.AndroidPlatform.<init>() (AndroidPlatform.kt:45) at […]

Categories
Development Plugins

Incompatibility between geolocator and onesignal_flutter plugins causes unexpected application termination

Steps to Reproduce: Start a new flutter app project Add to your pubspec.yaml the following dependencies: onesignal_flutter: ^2.0.0 geolocator: ^5.1.3 run the app (Returns an error requesting migration to androidX) Finish the app and migrate your project to androidX Run the app again The app will simply stop working during your startup! Can anyone give […]

Categories
Angular Development

Nativescript + Angular – Unable to instantiate receiver …. Didn’t find class

I am working on an application where I want to register a new broadcast receiver. However, when the intent is triggered the application is not able to find the receiver class and fails with the below error: System.err: Unable to instantiate receiver org.nativescript.ntngcallerid.PhoneCallReceiver: java.lang.ClassNotFoundException: Didn’t find class “org.nativescript.ntngcallerid.PhoneCallReceiver” on path: DexPathList[[zip file “/data/app/org.nativescript.ntngcallerid-1v-8qMmEKBejsoEoL26_7Q==/base.apk”],nativeLibraryDirectories=[/data/app/org.nativescript.ntngcallerid-1v-8qMmEKBejsoEoL26_7Q==/lib/x86, /data/app/org.nativescript.ntngcallerid-1v-8qMmEKBejsoEoL26_7Q==/base.apk!/lib/x86, /system/lib, […]

Categories
Development

Runtime exception: Unable to start activity in real phone but emulator works fine

My app work well with the android emulator. But, when I compiled it into an apk. It crash with following error. java.lang.RuntimeException: Unable to start activity ComponentInfo{tk.myessentialoils.a16personalities/tk.myessentialoils.a16personalities.TitleActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.ConstraintLayout at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2843) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2921) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1639) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:176) […]

Categories
Development

Retrieve multiple data from firebase

Hey im relatively new to firebase and programming as well so im sorry if its kind of a stupid question. im struggling with retrieving a recipe above is the datatree from firebase and below is the code from the MainActivity package com.example.myapplicationdatatest; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; import com.google.firebase.FirebaseApp; import com.google.firebase.auth.FirebaseAuth; import […]