-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got Errors while load this project to Android Studio "2 modules cannot to be loaded" app.iml demo.iml #22
Comments
You can work around this by loading the project using File > New > Import Project, rather than File > Open. Thanks for the report, we'll fix this in the next version if possible. |
OK, it's no error happen now by "import project". |
Apart from being in Python, the project works just like a normal Android project. The https://github.com/chaquo/chaquopy-hello/blob/master/app/src/main/res/layout/activity_main.xml You can edit the layout file with the visual editor in Android Studio, or by directly editing the XML. Any tutorials on Android programming in Java should be fairly easy to adapt to Chaquopy, following the pattern of the initial port. |
This is OscarHu.... |
I think the Android user interface API is generally well-designed, but yes, it does take some time to learn. As I said in the other issue, we'll release another example app soon for running text-based Python scripts without a GUI. |
Hi, Malcolm:
The pure text-based is not what I need, I need a very simple code to
know how to use the GUI by python. I already put an example in
"chaquopy-hello" issue.
It's need to know how import android's View class and how to use it by
python.
If I'd like to use the others android's class (GUI), how to make a correct
import and how to use them by python. It should be the "Quick Start" code
and simple examples code.
Thank you.
2018-01-10 9:20 GMT+08:00 Malcolm Smith <notifications@github.com>:
… I think the Android user interface API is generally well-designed, but
yes, it does take some time to learn. As I said in the other issue, we'll
release another example app soon for running text-based Python scripts
without a GUI.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AYsmcmaHbayNmys-IsakXmmjLUPSeAypks5tJBB0gaJpZM4RXQGJ>
.
--
Best regards,
Oscar Hu
Mobile: +886-920-691966
Email: oscarhu@gmail.com
Skype:oscarhu
|
(Moved from chaquo/chaquopy-hello#2) I found below code in hello.py:
Is it means that I can start my program by "hello.py" directly? Don't need a "MainActivity.java" to start the program? I'd like to change "Hello World" of the TextView to "Chaquopy Hello World" by Python code then I put "self.findViewById(R.id.txv).setText(R.string.app_name)" in the code but not working, stop by system error. "class MainActivity(static_proxy(AppCompatActivity)):
" |
Yes, the Your changes look fine to me. What was the error you received? |
It can be made an APK code by Android Studio and installed on my HTC phone but got an Error message, "Unfortunately, Chaquopy Hello World has stopped" while running it. |
I have, and it worked as expected. Please find the error details in the logcat as described here. |
Split APKs installed |
No, that's the Run window. The details of the error should be in the Logcat window. |
I take a screen shot as below link:
|
Well, there is no import statement at hello.py:7 in the original file, so you must have added something else. If you've added a line simply saying |
It's interesting, I didn't modify anything but it works well now. Anything change on Chaquopy? Next topic is how to use python libraries such as json, requests, beautifulsoup...... |
As of a few minutes ago, the original Android Studio loading errors are fixed for both the demo and "hello" projects. Nothing else has changed on our side. |
This Error is also happen while load chaquopy-hellp project.
The text was updated successfully, but these errors were encountered: