To monitor log on device, use command "adb -d logcat"
1. Problem description: App can run on emulator but fail on device. Saying xxxx.js cannot be loaded.
Founding:
- check Titanium project build directory ~/android/bin/assests/Resources/ . The missing js file is missing. Even after clean and rebuild project, file is not copied to this directory properly.
Solution:
1. in Titanium studio, right click Resources to add new file. Duplicate the missing js file content in this new file. Replace the missing file with this newly created file.
2. Clean and build project again. Run on Emulator. Make sure the new file is copied to build directory now.
沒有留言:
張貼留言