我在Android Studio中与Pepper仿真器一起工作了一段时间 - 现在我切换了计算机并安装了新的计算机。
当前AS版本为4.2.2(由于更高版本以前显示了Pepper Emulator的问题),
我在此处遵循此描述: https://developer.softbankrobotics.com/pepper-qisdk/getting-started/installing-pepper-sdk-plug#avd-graphical-option-paphical-option
,如果我尝试启动完整的IDE崩溃模拟器。
RDTA-LOGS显示:
2022-07-04 20:24:29 ERROR ActionManagerImpl:111 - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-07-04 20:24:29 ERROR ActionManagerImpl:114 - OS: Windows 10
2022-07-04 20:24:29 ERROR ActionManagerImpl:120 - Plugin to blame: Pepper SDK version: 1.5.3
2022-07-04 20:24:29 ERROR ActionManagerImpl:128 - Last Action:
2022-07-04 20:24:29 ERROR ActionManagerImpl:103 - action with the ID "com.softbank.robot.sdkplugin.robot.connection.naoqi.OpenRobotViewerAction" was already registered. Action being registered is Open Robot Viewer (Open the Robot Viewer); Registered action is Open Robot Viewer (Open the Robot Viewer) Plugin: Pepper SDK [Plugin: com.softbank.robot.sdkplugin]
com.intellij.diagnostic.PluginException: action with the ID "com.softbank.robot.sdkplugin.robot.connection.naoqi.OpenRobotViewerAction" was already registered. Action being registered is Open Robot Viewer (Open the Robot Viewer); Registered action is Open Robot Viewer (Open the Robot Viewer) Plugin: Pepper SDK [Plugin: com.softbank.robot.sdkplugin]
即使错误显示JDK 11,根据项目结构JDK 1.8应使用(请参阅ScreenShot):
在Gradle(编译和Kotlin选项)中找到了相同的JDK
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 31
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 23
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
版本Jetbrains-Folder(通常以%AppData%发现)并未与AS一起安装。
我在网上发现的其他建议是作为管理员运行 - 不起作用。
我的问题可以与Android模拟器版本有关吗?按照软银“入门”模拟器。29.0.11自动安装,以确保兼容性。在我的SDK工具中,该模拟器版本未安装,我也找不到下载。
我很感激任何帮助!提前致谢!
I been working with the pepper Emulator in Android Studio for a while - now I switched computers and installed AS on the new one.
Current AS version 4.2.2 (as higher versions have shown issues with pepper emulator before)
I followed this description here to the T: https://developer.softbankrobotics.com/pepper-qisdk/getting-started/installing-pepper-sdk-plug#avd-graphical-option
Yet, the complete IDE crashes if I attempt to start the emulator.
The rdta-Logs show:
2022-07-04 20:24:29 ERROR ActionManagerImpl:111 - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-07-04 20:24:29 ERROR ActionManagerImpl:114 - OS: Windows 10
2022-07-04 20:24:29 ERROR ActionManagerImpl:120 - Plugin to blame: Pepper SDK version: 1.5.3
2022-07-04 20:24:29 ERROR ActionManagerImpl:128 - Last Action:
2022-07-04 20:24:29 ERROR ActionManagerImpl:103 - action with the ID "com.softbank.robot.sdkplugin.robot.connection.naoqi.OpenRobotViewerAction" was already registered. Action being registered is Open Robot Viewer (Open the Robot Viewer); Registered action is Open Robot Viewer (Open the Robot Viewer) Plugin: Pepper SDK [Plugin: com.softbank.robot.sdkplugin]
com.intellij.diagnostic.PluginException: action with the ID "com.softbank.robot.sdkplugin.robot.connection.naoqi.OpenRobotViewerAction" was already registered. Action being registered is Open Robot Viewer (Open the Robot Viewer); Registered action is Open Robot Viewer (Open the Robot Viewer) Plugin: Pepper SDK [Plugin: com.softbank.robot.sdkplugin]
Even though the error shows JDK 11, as per Project Structure JDK 1.8 should be in use (see screenshot):


Same jdk version is found in gradle (compile and kotlin options):
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 31
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 23
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
In addition I noted that the JetBrains-Folder (usually found in %APPDATA%) was not installed along with AS.
Other advice I found online was to run AS as administrator - didn't work.
Could my issue have something to do with the Android Emulator version? As per Softbank "getting Started" Emulator.29.0.11 is installed automatically, to ensure compatibility. In my sdk tools this emulator version is not installed tho, and I can't find a download anymore either.
I'd be grateful for any help! Thanks in advance!
发布评论
评论(2)
模拟器不依赖于项目的SDK。
这取决于您系统的SDK。
您正在运行哪个版本的Android Studio?您在新计算机上拥有的版本可能是最新的,并且不受Pepper SDK插件的支持。
您可能需要在没有此插件的情况下工作...
The emulator is not depending on your project's SDK.
It depends on your system's SDK.
Which version of Android Studio are you running? The version you have on the new computer may be more recent and not supported by the Pepper SDK plug-in.
You might need to work without this plug-in...
我遇到了同样的问题。
在过去的几天里,我一直在努力,试图让机器人模拟器正常工作。
他们的问题似乎在于OS兼容性,我正在尝试与Peppersdk合作的不同版本。
唯一的解决方案是安装Ubuntu,因为它也可以在此之后遵循一些额外的步骤,我还将在下面发布。
安装
Android Studio Bumblebee | 2021.1.1补丁2022年4月7日
on
ubuntu 22.04.3 lts
。安装
Peppersdk
然后在终端上运行:
sudo apt install qemu-kvm
sudo adduser yousername kvm kvm
cd/home/qud> /share/softbank robotics/robotsdk/api 7/tools/lib
mv libz.so.1 libz.so.1.bak
ln -s/usr/lib/x86_64-linux-gnu/libz.so libz.so.so.1
希望它起作用。
I was experiencing the same problem.
I have struggled a lot the past few days trying to get the robot emulator to work properly.
They issue seems to lie with the OS compatibility, I was trying out different versions of AS and none worked with PepperSDK properly.
The only solution was to install Ubuntu as it is also found on this thread on United Robotics and follow some extra steps afterwards which I will also post below .
Install
Android Studio Bumblebee | 2021.1.1 Patch 3 April 7, 2022
on
Ubuntu 22.04.3 LTS
.Install
PepperSDK
Then run on terminal:
sudo apt install qemu-kvm
sudo adduser yourusername kvm
cd /home/$USER/.local/share/Softbank Robotics/RobotSDK/API 7/tools/lib
mv libz.so.1 libz.so.1.bak
ln -s /usr/lib/x86_64-linux-gnu/libz.so libz.so.1
Hope it works.