2017-05-14 1 views
0

내장 메일 앱을 사용하지 않고 이메일을 보내려면 Android and Android Studio에 메일, 활성화 및 기타 jar 파일을 보내려고합니다. 하지만 달리기에 오류가 발생했습니다. 검색 횟수가 많아서 문제가 정확히 무엇인지 알 수 없었습니다. 누군가 도울 수 있습니까? Android 2.2를 사용하고 있습니다. 다음은 내가 android studio에 jar 파일을 추가하는 중 오류가 발생했습니다.

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.DataHandler$1) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$1) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$2) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$3) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 
compiler that did not target the modern .class file format. The recommended 
solution is to recompile the class from source, using an up-to-date compiler 
and without specifying any "-target" type options. The consequence of ignoring 
this warning is that reflective operations on this class will incorrectly 
indicate that it is *not* an inner class. 
warning: Ignoring InnerClasses attribute for an anonymous inner class 
(javax.activation.SecuritySupport$4) that doesn't come with an 
associated EnclosingMethod attribute. This class was probably produced by a 

무엇입니까 오류 및 더 많은 오류입니다. 아무도 도와 줄 수 있습니까

답변

0

읽으면 다른 컴파일러를 사용하여 컴파일 되었기 때문에 지원되지 않습니다.

이 클래스는 현대 .class 파일 형식을 대상으로하지 않은 컴파일러에서 생성했을 가능성이 큽니다. 해결책은 최신 컴파일러 을 사용하고 "-target"유형 옵션을 지정하지 않고 소스에서 클래스를 다시 컴파일하는 것입니다. 이 경고를 무시하면이 클래스의 반사 작업이 은 이 아니고 내부 클래스임을 나타냅니다.

jar 파일의 위치를 ​​알 수는 없지만 작동하지 않는다고 생각합니다.

+0

문제는 내가 다운로드 한 항아리에있을 수 있습니까? –

+0

예, 다음과 같습니다. http://stackoverflow.com/questions/36762834/getting-enclosingmethod-errors-on-building-in-android-studio-2 – creativecreatorormaybenot