I'm brand new to Andoid Studio I built an app following this tutorial which works well on the emulator, but when I try to run it on my physical device (connected via USB), the app gets deployed and starts but as soon as I click a button that includes calls to 'com.azure.android:azure-communication-calling:1.0.0'" the app crashes with the error -
JNI DETECTED ERROR IN APPLICATION: JNI NewStringUTF called with pending exception java.lang.ClassNotFoundException: Didn't find class "com/microsoft/media/NTLMEngineImpl" on path: DexPathList[[zip file "/data/app/~~ASAuPXcIxSXpXvIXvdBz6Q==/com.example.intercom-trFe1JVZL8mL-E4KBKikCg==/base.apk"]
Any ideas?
Related
I installed the Pepper SDK according to the guide (https://qisdk.softbankrobotics.com/sdk/doc/pepper-sdk/ch1_gettingstarted/installation.html) multiple times now, but as i am starting the Robot Emulator for Pepper or trying to connect to the real robot, Android Studio just closes without any error.
I looked into the Windows Event Viewer and it says the problem is located in qi.dll in C:\Users[name]\AppData\Local\Temp\qi.dll.
The last message in the Event Log says
"QI_WRITABLE_PATH=D:\Softbank Robotics\RobotSDK\API 7/naoqi-config/
D:\Softbank Robotics\RobotSDK\API 7\tools/bin/naoqi-bin.exe --qi-listen-url tcp://127.0.0.1:9570" and the emulator loads to 0-17% before closing.
I already tried to reinstall pretty much everything and different versions, but nothing helped.
First, are you running it on a compatible system?
Given that you are on Windows 11, this troubleshooting section might apply to your case:
Connection to a real or virtual robot is impossible and log contains:
java.lang.UnsatisfiedLinkError: C:\Users\[yourUserName]\AppData\Local\Temp\qi.dll
The error may be caused by space character your session name [yourUserName].
Since quite a while, I've been trying to run an Android app for the humanoid robot Pepper on Mac OS 10.13.6. In the past, there occurred many issues when I was trying to run a virtual device in combination with the Pepper Emulator. When I tried to run the emulator with Android SDK version 30 or 29, I was always receiving an error message that there were "NO_CERTIFICATES" to permit the installation of the app. After trying the option to generate a signed bundle in Android Studio, no change was happening.
After downgrading to Android SDK version 23, it was finally possible to run the robot viewer while installing and starting the app on the virtual tablet device without any crash occurring. However the app didn't crash at this point, the following error message appeared in the log histroy:
E/qi.path.sdklayout: Cannot create directory '"/mnt/sdcard/.config/qimessaging"' error was: boost::filesystem::create_directories: Permission denied: "/mnt/sdcard/.config"
E/qi.os: Unable to create file: ''
As soon as I call the robot to execute an animation by clicking a button on the tablet interface, the app crashes and the following lines are printed to the log:
enter image description here
I thought that this error might be implied by the first error message. Therefore I tried to update the AndroidManifest.xml with this permission tag:
enter image description here
Unfortunately, this did not change anything. So I hope to receive some help from your community. Also I would be extremly happy to receive some advice from you, #dfinn. I've read that you got around several issues to run a Pepper application on your Mac, is this correct?
Thanks a lot for all your support!
The error E/qi.path.sdklayout: Cannot create directory – Permission denied has no visible consequence.
The real issue you have here is the one described in the backtrace, java.lang.IllegalStateException: Could not execute method for android:onClick.
It looks like something is wrong with an onClick callback in your Android code.
Setting configuration to Android on Android Studio I can easily debug by running
debug 'android'
Unfortunately setting configuration to desktop and running debug 'desktop' doesn't seams to work. It only display the following message without stopping at the break points
Listening to connection, address 127.0.0.1:55558, transport 'socket'
Can someone help?
It is very easy - everything is describe here in libgdx page:
https://libgdx.badlogicgames.com/documentation/gettingstarted/Running%20and%20Debugging.html#running-desktop-project-in-intellij-android-studio
Short version:
You should run app by DesktopLuncher class
If app crash - check your run configuration your asset folder. It is probably wrong. Set correct folder and everything should work good :).
I am trying to profile my android application code using jprofiler,for the very first time, which I have installed and integrated but as I click Run-> Profile 'app'` the jprofiler opens up with an error message after failing to connect.
Could not connect to 127.0.0.1:8849. Please make sure that the remote address is correct
I am developing Universal App using VS2015 in Win10. The simulator and the android emulator is running fine.
But when I started the Windows Phone Mobile Emulator, then the emulator runs and shows "OS is starting", and then after a long delay (i.e. 10mins) the Emulator turned off and these messages have been shown.
Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device '8BDF218D-FDBB-4A97-90F9-3AA33B559A92'.':
DeviceException - App deployment failed. Please try again.
Error : DEP6200 : Bootstrapping 'Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB' failed. Device cannot be found. App deployment failed. Please try again. TestUWP2
What is this Bootstrapping error.
The Emulator in Hyper-V Manager is running fine. Plz help and let me get rid of it.
See the pic.
You need to install latest emulators and Windows SDK, you can get them from this page.
https://dev.windows.com/en-us/downloads/windows-10-developer-preview
Its also suggested to update your UWP Tools
http://go.microsoft.com/fwlink/?LinkId=627168
Installing the new emulators fixed the issue for me.
https://go.microsoft.com/fwlink/p/?LinkId=615095