Home Features Docs Blog Support GitHub

java.lang.NoSuchMethodError: No direct method internalClone(Ljava/lang/Cloneable;)


(Mohammad F) #1

Hi I recently was trying to port my libgdx game to ios,I used example in github everything worked fine until I see this error,This happens when I try to run xcode project ,Does any one knows how can I fix this issue ?
dex2oat W 1968 66773 /Users/rolandvigh/public-repo/aosp/art/compiler/driver/compiler_driver.cc:1860] Skipping class org.xml.sax.helpers.XMLReaderAdapter from /Users/mohammad.fakhreddin/Documents/LibGdxProjects/CavemanJumpFullPlatform/ios/build/moe/main/dex/classes.jar previously found in /Users/mohammad.fakhreddin/.moe/moe-sdk-1.4.2/sdk/moe-core.dex
3 Zip: EOCD not found, /Users/mohammad.fakhreddin/.moe/moe-sdk-1.4.2/sdk/moe-core.dex is not zip
3 Zip: EOCD not found, /Users/mohammad.fakhreddin/.moe/moe-sdk-1.4.2/sdk/moe-core.dex is not zip
3 Zip: EOCD not found, /Users/mohammad.fakhreddin/.moe/moe-sdk-1.4.2/sdk/moe-core.dex is not zip
dex2oat F 1968 66766 /Users/rolandvigh/public-repo/aosp/art/compiler/oat_writer.cc:649]Unexpected failure to resolve a method: java.lang.Object java.lang.Object.internalClone(java.lang.Cloneable)
dex2oat F 1968 66766 /Users/rolandvigh/public-repo/aosp/art/compiler/oat_writer.cc:655] java.lang.NoSuchMethodError: No direct method internalClone(Ljava/lang/Cloneable;)Ljava/lang/Object; in class Ljava/lang/Object; or its super classes (declaration of ‘java.lang.Object’ appears in /Users/mohammad.fakhreddin/.moe/moe-sdk-1.4.2/sdk/moe-core.dex)
dex2oat F 1968 66766 /Users/rolandvigh/public-repo/aosp/art/compiler/oat_writer.cc:655] (Throwable with empty stack trace)
NATIVE BACKTRACE:
0 dex2oat 0x000000000b093659 _ZN3art7Runtime5AbortEv + 99
1 dex2oat 0x000000000b0b7a99 _ZN3art10LogMessageD2Ev + 649
2 dex2oat 0x000000000af7b0c7 _ZN3art9OatWriter22InitImageMethodVisitor11VisitMethodEmRKNS_21ClassDataItemIteratorE + 1677
3 dex2oat 0x000000000af76567 _ZN3art9OatWriter15VisitDexMethodsEPNS0_16DexMethodVisitorE + 257
4 dex2oat 0x000000000af75eb9 _ZN3art9OatWriter19InitOatCodeDexFilesEm + 179
5 dex2oat 0x000000000af74e93 _ZN3art9OatWriterC2ERKNSt3__16vectorIPKNS_7DexFileENS1_9allocatorIS5_EEEEjmiPKNS_14CompilerDriverEPNS_11ImageWriterEPNS_12TimingLoggerEPNS_7SafeMapINS1_12basic_stringIcNS1_11char_traitsIcEENS6_IcEEEESN_NS1_4lessISN_EENS_17TrackingAllocatorINS1_4pairIKSN_SN_EELNS_12AllocatorTagE7EEEEE + 611
6 dex2oat 0x000000000adfba0e _ZN3art7Dex2Oat13CreateOatFileEv + 428
7 dex2oat 0x000000000aded6a3 main + 611
8 libdyld.dylib 0x00007fff6f4d6ed9 start + 1

dex2oat F 1968 66766 /Users/rolandvigh/public-repo/aosp/art/runtime/runtime.cc:464]Runtime aborting…
Aborting thread:
“main” prio=5 tid=1 Runnable (still starting up)
| group="" sCount=0 dsCount=0 obj=0x0 self=0x7fecbd002000
| sysTid=66766 nice=-1 cgrp=default sched=1/31 handle=0x120155c0
| state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7ffee4618000-0x7ffee4620000 stackSize=8MB
| held mutexes= “abort lock” “mutator lock”(shared held)
(no managed stack frames)
Pending exception java.lang.NoSuchMethodError: No direct method internalClone(Ljava/lang/Cloneable;)Ljava/lang/Object; in class Ljava/lang/Object; or its super classes (declaration of ‘java.lang.Object’ appears in /Users/mohammad.fakhreddin/.moe/moe-sdk-1.4.2/sdk/moe-core.dex)
(Throwable with empty stack trace)Dumping all threads without appropriate locks held: thread list lock
All threads:
DALVIK THREADS (1):
“main” prio=5 tid=1 Runnable (still starting up)
| group="" sCount=0 dsCount=0 obj=0x0 self=0x7fecbd002000
| sysTid=66766 nice=-1 cgrp=default sched=1/31 handle=0x120155c0
| state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7ffee4618000-0x7ffee4620000 stackSize=8MB
| held mutexes= “abort lock” “mutator lock”(shared held)
(no managed stack frames)

dex2oat W 1968 66766 /Users/rolandvigh/public-repo/aosp/art/runtime/barrier.cc:96] Attempted to destroy barrier with non zero count -1


#2

Could you share a test project that can reproduce this issue?


(Mohammad F) #3

Thanks for your reply ,My libgdx porject was too old so after upgrading libgdx porject the error disapears. Now it works perfectly ,I have to say multi os engine is some kind of miracle ,I never was so excited