티스토리 뷰
[Android] Conversion to Dalvik format failed with error 1
jhbaek 2010. 12. 23. 18:07
[2010-12-23 17:48:27 - ChildClassOfActivitySample]: Dx
trouble processing "javax/net/ServerSocketFactory.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
This is often due to inadvertently including a core library file
in your application's project, when using an IDE (such as
Eclipse). If you are sure you're not intentionally defining a
core class, then this is the most likely explanation of what's
going on.
However, you might actually be trying to define a class in a core
namespace, the source of which you may have taken, for example,
from a non-Android virtual machine project. This will most
assuredly not work. At a minimum, it jeopardizes the
compatibility of your app with future versions of the platform.
It is also often of questionable legality.
If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine
distribution, as opposed to compiling an application -- then use
the "--core-library" option to suppress this error message.
If you go ahead and use "--core-library" but are in fact
building an application, then be forewarned that your application
will still fail to build or run, at some point. Please be
prepared for angry customers who find, for example, that your
application ceases to function once they upgrade their operating
system. You will be to blame for this problem.
If you are legitimately using some code that happens to be in a
core package, then the easiest safe alternative you have is to
repackage that code. That is, move the classes in question into
your own package namespace. This means that they will never be in
conflict with core system classes. JarJar is a tool that may help
you in this endeavor. If you find that you cannot do this, then
that is an indication that the path you are on will ultimately
lead to pain, suffering, grief, and lamentation.
[2010-12-23 17:48:27 - ChildClassOfActivitySample]: Dx1 error; aborting
[2010-12-23 17:48:27 - ChildClassOfActivitySample] Conversion to Dalvik format failed with error 1
다음과 같은 에러 날 땐 프로젝트 property 들어가서 Java Build Path의 Library탭에서 에뮬레이터 관련된거 빼고 딴거 지우면 된다.
'Development > Mobile' 카테고리의 다른 글
[Android] SQLite3 기본 (0) | 2010.12.24 |
---|---|
[Android] Activity에서 바로 SQLite3 DB 사용하기 (0) | 2010.12.24 |
[Java] jUnit 사용하기 (0) | 2010.12.24 |
[Android] JCIFS를 이용하여 Android와 Windows간에 파일 공유하기 (10) | 2010.12.24 |
[Java/Android] Override annotation 에러 발생 시 (0) | 2010.12.18 |
[Android] Android Layout (0) | 2010.12.16 |
[Android] Custom UI Sample 많은 사이트 (0) | 2010.12.12 |
[Android] Service에서 Activity를 띄울 때 (0) | 2010.11.15 |
- Total
- Today
- Yesterday
- NDK
- algorithm
- database
- 프로그래밍
- Visual C++
- 드라이버
- C
- MFC
- AWS
- jni강좌
- Cloud
- driver
- C++
- 안드로이드
- source
- gcc
- linux
- Quiz
- Troubleshooting
- it
- 리눅스
- kering
- android
- winapi
- API
- Python
- jni
- 음악
- db
- java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |