* Where: Initialization script '/private/var/folders/qb/2ngkf7dd6k53s5fmdhnhmxxr0000gn/T/test_main__1.gradle' line: 21 * What went wrong: A problem occurred configuring project ':app'. > Could not create task ':app:test.main()'. > SourceSet with name 'main' not found. 什么意思
时间: 2024-04-28 14:22:52 浏览: 215
这个错误信息指出,在'/private/var/folders/qb/2ngkf7dd6k53s5fmdhnhmxxr0000gn/T/test_main__1.gradle'的第21行出现了初始化脚本的问题,并且由于找不到名为“main”的SourceSet,无法创建任务':app:test.main()'。这可能是由于脚本或项目本身中的配置设置不正确引起的。您可能需要查看脚本和项目配置以确定并解决问题。
相关问题
#include "wheeltec_robot.h" #include "Quaternion_Solution.h" sensor_msgs::Imu Mpu6050;//Instantiate an IMU object //实例化IMU对象 /************************************** Date: January 28, 2021 Function: The main function, ROS initialization, creates the Rob
ot object and starts the main loop. **************************************/ int main(int argc, char **argv) { // ROS initialization ros::init(argc, argv, "wheeltec_robot"); // Instantiate a node handle object ros::NodeHandle nh; // Instantiate a robot object WheeltecRobot robot(&nh); // Start the main loop while (ros::ok()) { robot.mainLoop(); ros::spinOnce(); } return 0; }
这段代码是什么意思?
阅读全文