When i try to build my app i get fail and "response code 500" (no warnings)
When i try to switch between screens, i have problems. i made code for closing screen and opening a new screen. Not wery smooth. Anybody has some good ideas here. I think the build in methods are not working for screens.
--
One of the following probably applies to your code (all may not apply to your code) See especially item #3 -- you are attempting to use more than 10 screens and it is probable AI2 becomes unstable. You probably can develop your app with only one or two screen using techniques described here: Building Apps with many Screens
Best advice is to start REMOVING screens and also to learn how to work with more than one screen::
TribleHunter http://puravidaapps.com/tribblehunter.php (tribblehunter.aia) note, this method works after the apk has been built...use the browser Screen button to change screens while developing... however when this code is in place, it will prevent the device's system memory from overflowing and crashing your app.
..also search for Taifun's Screen Manager explanation.
1) You have coding errors in your blocks. In the Blocks editor, look in the lower left
for the yellow and red triangle icons. If the red icon has a value larger than 0, you
have a serious coding error. Find the block in your code that has a red triangle and
fix it. Red triangles always inhibit creating an apk or running a project in the
emulator or possibly creating an aia file. Yellow triangles are more forgiving,
however, sometimes, these need to be fixed because they trip an internal warning and you
do not get a compile, so fix the yellow triangles too.
2) Your source file (the aia file) is larger than the 5Mb limit allowed in AI2 or you put images or other resources in your Media (resources) that you do not use in the app. All the images and sounds in resources count toward the 5Mb limit. You can program apps larger than 5Mb in the browser, but they will not compile and might not run in the emulator or the project may not save as an aia. If this is the case you need to reduce the size of your image and/or sound files. Most image files can be made quite small by resizing them using a photo manipulation program on your PC to less than 50Kb each.
3) You might have more than 10 Screens in your app. AI2 becomes unstable when more
than ten screens are used.
4) You might have set a Screen icon for your project that is too large. Use an image sizeof 48x48 px or 96x96px instead and only use jpg or png images. *.ico files are not supported.
5) You did not code the entire project using App Inventor 2. If you used one of the third-party AI2 clones,you might not be able to load a Project into the AI2 compiler or create an apk with the standard AI2.
6) If you incorrectly modified the project's Manifest files, you may have issues.
7) Sometimes, if you have LOTS of Layouts on a single screen, the apk might not compile.
Reduce the number of screens and then try to compile the apk.
To get more hints about developing AI2 projects, please visit:
MITs tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html
AI2 free online eBook http://appinventor.mit.edu/explore/ai2/tutorials.html ... the links are at the bottom of the Web page.
--
Okay Thx ;)
but when i try multible times to compile i will succeed. Strange. I have no errors and the file is only 1,29MB compiled. The app is running much faster compiled than with the emulator. So i have to bug this way :(
--
Yes Peter, the emulator is slow compared to running in the emulator. The emulator runs faster in PCs with lots of memory and a fast cpu but the app will never run as efficiently in an emulator as on the device.
If you have lots of layouts, you may have difficulty compiling; it is just not an aia size issue about how efficiently the compiler works Peter.
--
The 500 message was caused by a problem with the buildservers this afternoon. Please try again in a little while.
--
Actually now i really studied this. Ive been trying for 6 hours now, and im back to where i startet. NOTHING WORKS WITH MULTIPLE SCREEN APPS, damiit :). Look at this 3 screenc but it dont work, Taifuns solution doesnt work either. What the heck is wrong?
--
댓글 없음:
댓글 쓰기