2014-12-30 6 views
1

이클립스에서 Android Studio로 작업 프로젝트 (라이브러리 포함)를 가져온 후에 다음 오류가 발생했습니다.Android Studio 오류 : 패키지 com.sun.xxx.xxx. 존재하지 않습니다

Error:(28, 50) error: package com.sun.xml.internal.bind.CycleRecoverable does not exist 

일부 연구를 한 후 다음 줄을 내 gradle 파일에 추가했습니다. 아무 소용이 없습니다.

apply plugin: 'java' 

// test line below 
compileJava.options.compilerArgs << "-XDignore.symbol.file" 
// end 

dependencies { 
    compile files('-android/libs/gdx-backend-android.jar') 
    compile files('libs/gdx.jar') 
    compile files('libs/gdx-sources.jar') 

} 

질문 : Android Studio에서 com.sun ... 패키지를 인식하도록하려면 어떻게해야합니까?

도움 주셔서 감사합니다.

답변

0

Eclipse 프로젝트가 J2SE/ME 프로젝트 였고 사용중인 라이브러리가 Android 환경에 포함되어 있지 않은 것 같습니다. 해결 방법은 사용중인 Android 버전을 찾고 사용하는 것입니다.

+0

라이브러리가 포함되어 있지만 "import com.sun.xxx"문이 실패하여 빌드가 실패합니다 ... 내가 잘못된 경로를 인식하여 AStudio를 인식하려고 시도합니까? – AhabLives

관련 문제