android - 将Eclipse Android项目导入到Android Studio中,但是如何构建呢?

标签 android eclipse android-studio intellij-idea

我通过以下步骤将一个非常古老的eclipse android项目导入到android studio中(目前,我正在使用与studio相同的intellij想法):

clicked Import Project on the Welcome screen
In the dialog that opens, selected the necessary Eclipse project
selected Import project from external model 
then selected Eclipse


现在,当我转到“运行应用程序”时,出现以下错误:

Error:(42, 23) java: generics are not supported in -source 1.3
  (use -source 5 or higher to enable generics) 


我认为我的项目没有使用gradle,maven或其他构建系统。我相信它正在使用默认的Eclipse构建系统。那么我可以采取哪些步骤来调整intellij IDEA中的信号源电平?

最佳答案

Project Settings-> Project-> Project language level中,选择等于或大于5.0的级别:

enter image description here

关于android - 将Eclipse Android项目导入到Android Studio中,但是如何构建呢?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32814486/

相关文章:

java - <Part>无法解析为类型(是的,我已经导入了List和ArrayList)

android - 哪些android sdk包需要安装,哪些不需要?是否需要安装所有版本的android API?

java - 检查用户决定是否正确

android - 在项目目录下找不到应用程序build.gradle文件

android - 找不到 NAndroid project.properties

java - 在ADT中定义FlatButton setOnClickListener

java - 无法通过 Eclipse 部署到 Elastic Beanstalk

java - 更新后单击 Vector Assets 上的颜色时 Android Studio 崩溃

android - QuickBlox - 来自不同位置/设备的相同用户登录

android - 按钮内的文本填充