ubuntu-20.04

Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found

廉价感情. 提交于 2020-12-30 06:55:47
问题 Installed Android 4.1 on Ubuntu 20.04. Getting the following error: Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found. On opening the SDK manager I get the following screen: I also executed $ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager --licenses How to fix this? ------ edit --------- This is what shows in the SDK Platforms tab. Unchecking the "Hide Obsolete Packages" doesn't change

opencv not working for c++ on ubuntu 20.04

China☆狼群 提交于 2020-07-22 10:57:05
问题 I've recently (re-)installed OpenCV 4.0.0 on Ubuntu 20.04, but when I try to build some c++ code on Sublime Text, it gives me back errors. This is the code: #include <stdio.h> #include <stdlib.h> #include "opencv2/opencv.hpp" #include "opencv2/highgui/highgui.hpp" using namespace cv; using namespace std; int radius = 50; int curve_angle = 10; int main() { Mat img(radius, radius, CV_8UC3, Scalar(0,0, 100)); namedWindow("showWindow", WINDOW_AUTOSIZE); imshow("showWindow", img); waitKey(0);

Unable to locate package python-pip Ubuntu 20.04

一曲冷凌霜 提交于 2020-07-16 00:46:32
问题 I am trying to install mininet-wifi. After downloading it, I have been using the following command to install it: sudo util/install.sh -Wlnfv However, I keep getting the error: E: Unable to locate package python-pip I have tried multiple times to download python-pip. I know mininet-wifi utilizes python 2 instead of python 3. I have tried to download python-pip using the command: sudo apt-get install python-pip But that leads to the same error: E: Unable to locate package python-pip 回答1: Since