2013-06-22 4 views
13

में एक डरावनी संदेश के साथ त्रुटि 1 के साथ त्रुटि 1 में विफल रहा, मैंने इस विषय के साथ कुछ प्रश्न देखे हैं, लेकिन जब मैं दूसरे भाग की खोज करता हूं तो मुझे अपनी त्रुटि में, मुझे कुछ भी नहीं मिला , इसलिए मैंने पूर्ण स्पष्टीकरण के साथ एक प्रश्न पोस्ट करने का फैसला किया।कंसोल व्यू

मेरे कोड में कोई त्रुटि नहीं पहचानी जाती है। कहीं भी नहीं। सभी पुस्तकालयों को जोड़ा जाता है, बाहरी पुस्तकालय परियोजनाओं को सफलतापूर्वक लिंक किया जाता है। कोई संकेत नहीं है कि लॉन्च के साथ कुछ भी गलत होना चाहिए।

फिर भी, जब मैं एप्लिकेशन लॉन्च करता हूं - चलाएं, संकलित करें और बनाएं (स्वचालित रूप से) - मुझे एक पॉप अप संदेश मिलता है जिसमें कहा गया है कि मेरे प्रोजेक्ट में त्रुटि है और मुझे एप्लिकेशन को फिर से लॉन्च करने का प्रयास करने से पहले उन्हें ठीक करना चाहिए ।

तो मैं कुछ गुणों के साथ चारों ओर झुकाव करता हूं, मेरे सहयोगी ने पता लगाया है कि "Android Private Libraries" को Properties -> Java Build Path -> Order and Export में चेक किया जाना है (जिसे मैंने पहले अन्य चेक बॉक्स के साथ अनचेक किया है)। लेकिन जब मैं अनुप्रयोग चलाने - एक ही पॉप अप, और Console ध्यान में रखते हुए निम्नलिखित: (डरावना संदेश)

[2013-06-22 20:55:03 - TheApplication] Dx 
trouble processing "java/sql/Savepoint.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. 

[2013-06-22 20:55:03 - TheApplication] Dx 1 error; aborting 
[2013-06-22 20:55:03 - TheApplication] Conversion to Dalvik format failed with error 1 

किसी को भी करने से पहले यह संदेश मिल गया है? मुझे यह क्यों मिल रहा है? मुझे "छिपी हुई लाइब्रेरी" या "आंतरिक पुस्तकालयों" के लिए कहां जाना चाहिए, जिनके बारे में मुझे पता भी नहीं हो सकता है?

मैंने अपने मालिक और सहयोगी के साथ जांच की है - वे सभी परियोजनाओं में एक ही पुस्तकालय हैं (क्योंकि हम एक साथ काम कर रहे हैं, हम स्पष्ट रूप से एक ही चीज रखना चाहते हैं)। तो मुझे इस समस्या को ठीक करने के लिए कहां जाना चाहिए?

उत्तर

4

क्या किसी ने इस संदेश को पहले प्राप्त किया है?

हां। हालांकि, 200 9 से नहीं।

मुझे यह क्यों मिल रहा है?

क्योंकि अपनी परियोजना के स्रोत कोड में, या एक जार में, आप java.sql.Savepoint इंटरफेस की एक प्रति, एक है कि एंड्रॉयड क्रम से आता है के अलावा अन्य है।

मुझे "छिपी हुई लाइब्रेरी" या "आंतरिक पुस्तकालयों" के लिए कहां जाना चाहिए, जिनके बारे में मुझे पता भी नहीं हो सकता है?

आपका ग्रहण कक्षापथ। आप बिल्ड पथ संवाद से अपने "ऑर्डर & निर्यात" स्क्रीन के स्क्रीनशॉट के साथ अपना प्रश्न संपादित करना चाह सकते हैं।

15

मैं हल करता हूं कि एंड्रॉइड.जर को "ऑर्डर एंड एक्सपोर्ट" टैब में प्रक्षेपित और पुस्तकालयों में हटा दें।

+0

+1 हां ... इसने मेरे लिए समस्या हल की ... – user755499

+0

मुझे ऐसा क्यों नहीं होता है, लेकिन यह समस्या को हल करता है –

+0

सभी बकवास लिखने के बजाय ... वे हमसे क्यों नहीं पूछते इसे हटा दें ... (बीटीडब्लू, यह पहले से ही अचयनित था ... मैंने सोचा कि यह गलती से था, इसलिए मैंने इसे चुना। उस पल में कोई त्रुटि नहीं थी। लेकिन, बाद में जब मैंने अपनी परियोजना को साफ किया तो यह हुआ।) –

1

एक ही समस्या थी।

निम्नलिखित कार्रवाई ने मुझे इस त्रुटि संदेश से छुटकारा पाने में मदद की।

1) Project--> properties-->Java Build Path

2) पर जाएं Order and Export tab

3 का चयन करें) का चयन रद्द करें Android Private Libraries और Android Dependencies और क्लिक ok

enter image description here

इस आवेदन सफलतापूर्वक शुरू हो गया के बाद।

+0

लेकिन आप उन एंड्रॉइड पुस्तकालयों को प्राप्त कर सकते हैं ... उदाहरण के लिए v4/v7 समर्थन पुस्तकालय – Jasper