2014-11-12 3 views
0

스칼라 IDE와 SBT Proguard를 사용하여 Android를 만들려고합니다. 처음 빌드하고 Eclipse를 컴파일 한 후에 응용 프로그램을 컴파일하고 컴파일 할 수 있습니다. 구문 내 수입은 세미콜론 (;)으로 끝나야합니다 불평.첫 번째 스칼라 빌드 후 Eclipse가 작동하지 않습니다.

나는 또한 다음과 같은 오류

Description Resource Path Location Type 
SBT builder crashed while compiling. The error message is 'class StringContext does not have a member f'. Check Error Log for details. scala  Unknown Scala Problem 

Description Resource Path Location Type 
Error in Scala compiler: class StringContext does not have a member f scala  Unknown Scala Problem 

다음과 같은 경고를 받고 있어요.

More than one scala library found in the build path (C:/eclipse/configuration/org.eclipse.osgi/bundles/284/1/.cp/lib/scala-library.jar, C:/dev/scala/libs/scala_library.min.jar).This is not an optimal configuration, try to limit to one Scala library in the build path. scala  Unknown Scala Classpath Problem 

enter image description here

+1

이클립스 프로젝트에서 스칼라 라이브러리 클래스 패스 컨테이너를 제거하십시오, 당신은이 링크를 확인하실 수 있습니다 "스칼라 라이브러리가 빌드 경로에 추가" : //groups.google.com/forum/#! topic/scala-ide-user/TvBZegGQ2uQ – MrMins

+0

@MrMin은 경고를 없애지 만 오류는 계속 발생합니다. –

답변

2

당신이 자바가 아니라 스칼라 관점인지 확인할 수 있습니까?

이미지에서 스칼라 라이브러리가 누락 된 것처럼 보입니다. 추가를 시도 했습니까? HTTPS : 이렇게하려면 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 스칼라를 선택한 다음

enter image description here

+0

예 스칼라 전망을 사용하고 있습니다 –

+1

이미지를 추가해 주셔서 감사합니다. – Jonoabroad

+0

문제 없으므로 유용 할 수도 있습니다. –

관련 문제