Coder Social home page Coder Social logo

Comments (14)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
[deleted comment]

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
What's the Android version you've been using ?

I hit something like that once (java.lang.ClassNotFoundException), it was an 
Eclipse/ADT problem where it messed up building properly the APK, you may hit 
the same trouble. You can unzip the APK and check within if the class 
com.android.python27.ScriptApplication exists or not, if not you would need to 
delete the project, create it again and retry.

Original comment by [email protected] on 28 May 2013 at 8:22

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Using newest Android 4.2.2

Original comment by [email protected] on 28 May 2013 at 8:29

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
So yes you're right the class is not in the APK but even after re-importing or 
even using a whole new workspace I still get the same problem and its not 
adding the class-files to the APK. But when I extract the sample PythonAPK.apk 
from your site its also not including the class-file but its still working??? 
I'm very confused...

Original comment by [email protected] on 28 May 2013 at 8:43

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
[deleted comment]

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
If you check with dex2jar (http://code.google.com/p/dex2jar/) the PythonAPK.apk 
from this site you will find the class:

1. Unzip the APK
2. Run: d2j-dex2jar classes.dex, this will create classes-dex2jar.jar
3. Unzip classes-dex2jar.jar
4. Browse classes-dex2jar folder and check classes there (you can also use 
jd-gui: http://java.decompiler.free.fr/?q=jdgui )

I'm not using the Eclispe ADT bundle provided by Google but regular Eclipse 
J2EE Juno + ADT r21.1 (not the ADT r22 yet as seems still rather buggy).

Original comment by [email protected] on 28 May 2013 at 8:58

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I'm just too stupid to get this to work this evening, I will try that again 
tomorrow but thanks for your help anyways

Original comment by [email protected] on 28 May 2013 at 9:37

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
After I re-setup Eclipse with an older Android SDK Version, it worked perfectly 
for me! Thank you very much!

You should maybe add a hint in the wiki that the Eclipse-ADT (at least the 
newest) doesn't work very well with the Eclipse project template.

Can be closed

Original comment by [email protected] on 29 May 2013 at 8:15

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Thanks for your feedback.

Original comment by [email protected] on 29 May 2013 at 8:19

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Sorry for bugging again but:
Earlier I was testing it with the Python3.2 APK which was&is working fine in my 
newly set up environment, but when I try the python2.7 APK, I get the same 
error over and over again. I tried re-importing, cleaning the project and I 
opened classes.dex which contains the classes that it is complaining about...

Original comment by [email protected] on 29 May 2013 at 8:57

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Can you put somewhere your Python2.7 APK so I can try it ?

Original comment by [email protected] on 29 May 2013 at 9:06

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Link to my Python2.7 APK:
http://owncloud.mineguild.de/public.php?service=files&t=0fc70bd7ef9c56670c354a29
bc7412ca

Original comment by [email protected] on 29 May 2013 at 9:23

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Really looks an Eclipse/ADT bug, I guess the APK is malformed somehow, I 
retried building the latest PythonAPK 2.7 with Eclipse Juno + ADT r21.1.0 which 
worked.

Suggestions:

- try right click on the project, android tools, fix project properties
- try to rebuild from another workspace
- clean reinstall of Eclipse/ADT

Original comment by [email protected] on 29 May 2013 at 9:56

from android-python27.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Same problem still unfixed for me :(
java.lang.ClassNotFoundException: com.android.python27.ScriptApplication
Android SDK Tool rev. 21
Eclipse SDK Version: 4.2.2 Build id: M20130204-1200

Original comment by [email protected] on 9 Jun 2013 at 10:21

from android-python27.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.