-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting "Cannot resolve symbol RobotActivity" #12
Comments
bump, I have the same problem. Are there any news about this issue? |
Hello @rfebbo @reinhardatovos When you "robotify" your application, the plugin adds as well the QiSDK dependency on your module’s build.gradle file:
(QiSDK 1.7.5 is the latest released version) Also make sure that your MainActivity.java contains the See: https://qisdk.softbankrobotics.com/sdk/doc/pepper-sdk/ch1_gettingstarted/starting_project.html Let me know if this works for you. Cheers! |
the problem is, the dependencies are there. it doesn't work. the main acivity is like this:
}` nothing can be resolved. almost everything is "red" the github Tutorial package didn't work either. |
When i put in RobotLifecycleCallbacks |
still the same issue. |
Any update on this trying to plan a Pepper application, but can't get the aldebaran import to resolve (Did all the above) working on a Mac |
I have the same issue. The RobotLifecycleCallbacks and the overrides are being highlighted in red, and any attempt to fix them doesn't work. Some of the import statements don't work either. I have followed a tutorial exactly, doing everything the did but nothing works. I am coding using android studio on a Mac. |
Same exact issues as everyone above and still no resolution. |
Hello, To use the QiSDK, you have to check that you have setup correctly the maven repository that is needed to get the QiSDK dependencies. This is done in your .gradle files that manage how your project is built. If you encounter this issues, maybe it's because you upgraded your Android Studio to the Arctic Fox version that add the gradle version 7 in your build.gradle project file (check
And in your build.gradle project file, remove your maven link reference inside This is a recent known issue of the automatic process to make a Robot Application that came with this version 7 of gradle. So when create your robot application, always check that your maven is put correctly in the right gradle file. This should solve your issues and now you can import correctly the QiSDK in your project files. |
Thanks. This helped to fix the issue and now the build is working!! |
Hello, I am now getting similar issues |
Hello, I'm new at using Android Studio and I am using it to program Pepper. Thank you in advance for your suggestions. |
Any Luck with RobotLifecycleCallbacks issue? |
To solve the remaining problems, it is necessary to import these classes
|
Hello, I've had this same issue for a while but I just solved it and all the errors cleared. STEP 1Make sure your settings.gradle file looks like this STEP 2Go to your modules build.gradile file and add the two lines highlighted STEP 3Make the neccessary imports in your main java file STEP 5Sync your project This solution worked for me. I hope it does for you guys also. |
Hello, I am trying to get my pepper robot to perform some simple speech task. I can follow the tutorial all the way up to "Creating a robot application". It seems like step 2 where you "robotify" the application is not working correctly. It creates a file called robotsdk.xml in the assets/robot directory but did not do any other modifications. When I copy the example code at the bottom into MainActivity.java I get the error in the title.
I have tried following the tutorial on a Windows 10 machine and a Linux machine and I get the same problem.
I am able to connect to the robot and slightly move the limbs around using the "Connect" button in the Pepper SDK.
The text was updated successfully, but these errors were encountered: