简体   繁体   English

进口错误

[英]errors on imports

I am just starting out with android. 我刚开始使用android。 I downloaded a sample project. 我下载了一个示例项目。 And getting some errors. 并得到一些错误。

I have errors on all these imports. 我在所有这些导入上都有错误。 Is this something wrong with my path? 我的路线有问题吗?

The quick fix just gives fix project setup. 快速修复仅提供修复项目设置。

Any help? 有什么帮助吗? thanks 谢谢

import android.app.Activity;
import android.gesture.Gesture;
import android.gesture.GestureLibraries;
import android.gesture.GestureLibrary;
import android.gesture.GestureOverlayView;
import android.gesture.Prediction;
import android.gesture.GestureOverlayView.OnGesturePerformedListener;
import android.os.Bundle;
import android.widget.Toast;

Very Common Problem, Try following thing, 非常常见的问题,请尝试以下操作,

  • Right Click on Project --> Select Properties 右键单击项目->选择属性

  • From the Left List Select Android 从左侧列表中选择Android

  • Now from the Right List Select Proper "Project Build Target" 现在,从右侧列表中选择适当的“项目构建目标”

Sometimes this might not work because in your Project's Folder the .classpath will be in read only mode, so Just right Click on that file and remove read only mode. 有时这可能不起作用,因为在您项目的文件夹中.classpath处于只读模式,因此只需右键单击该文件并删除只读模式即可。

您是否按照步骤设置了SDK,ADT Pluggin?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM