KSOP2 Librarary class not found exception

后端 未结 3 1649
栀梦
栀梦 2021-01-16 14:15

I\'ve used KSOP2 in my project and it worked all these days. Recently I bought a new machine and moved my project to new machine and imported the ksoap library to project et

相关标签:
3条回答
  • This may be related to the latest Android plugin and tools (r17). I read somewhere that external jar files need to be run through the dx --dex tool (because of the different binary format of Java binaries in Android), but it didn't work for me. What I ended up doing was adding the project as source instead of compiled binaries (by linking to the source from the project and adding it as a source folder.) This way Eclipse builds it properly and Android finds it during runtime.

    0 讨论(0)
  • 2021-01-16 14:37

    I had similar problem, simply I forgot to check checkbox on kosoap2 library in Java Build Path options, Order And Export tab :)

    0 讨论(0)
  • 2021-01-16 14:40

    I managed to solve the problem by

    1. Creating a folder "libs" in the project
    2. Copying the external jars in to the folder
    3. Refresh the folder
    4. Go to properties -> Build path -> Add Jar (not external JAR)
    5. Clean the project
    6. Restart Eclipse

    Boom it worked for me. Hope it'll help others too.

    0 讨论(0)
提交回复
热议问题