Z ZJP Active Member Licensed User Longtime User Nov 7, 2019 #1 Hi, Just upgrade to the latest version (9.50) from the 6.50. I have now an error "An error has occured in sub:main_activity_create (java line: 474). java.io.FileNotFoundException: marker_oranged.png". in this line Code: Copy Dim tmp1 As Bitmap = LoadBitmap(File.DirAssets, "marker_oranged.png") The file is (of course) present in the File Manager. I have this error with every LoadFromAssets to. Any solution? Thanks
Hi, Just upgrade to the latest version (9.50) from the 6.50. I have now an error "An error has occured in sub:main_activity_create (java line: 474). java.io.FileNotFoundException: marker_oranged.png". in this line Code: Copy Dim tmp1 As Bitmap = LoadBitmap(File.DirAssets, "marker_oranged.png") The file is (of course) present in the File Manager. I have this error with every LoadFromAssets to. Any solution? Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 8, 2019 #3 If cleaning the project doesn't solve it then try to uninstall the app from the device, clean the project and run again. Upvote 0
If cleaning the project doesn't solve it then try to uninstall the app from the device, clean the project and run again.
Z ZJP Active Member Licensed User Longtime User Nov 8, 2019 #4 Hi, I have trying anything both of you have suggested. Even changing the device. The error still present. Back to the 6.50 for this project, and i will use the 9.50 for the next one. Thanks. Upvote 0
Hi, I have trying anything both of you have suggested. Even changing the device. The error still present. Back to the 6.50 for this project, and i will use the 9.50 for the next one. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2019 #5 There is never a good reason to use an old version of B4A. Specifically not v6.50. 1. Post the full error message. 2. Open the APK with 7zip or a similar tool and check whether the file is there. 3. Make sure that the file case in the APK is lower cased. Upvote 0
There is never a good reason to use an old version of B4A. Specifically not v6.50. 1. Post the full error message. 2. Open the APK with 7zip or a similar tool and check whether the file is there. 3. Make sure that the file case in the APK is lower cased.
Z ZJP Active Member Licensed User Longtime User Nov 10, 2019 #6 Hi, The 'assets' folder is not present in the 'v950 apk'. Attachments apk v650.jpg 48.4 KB · Views: 695 apk v950.jpg 48.5 KB · Views: 581 error msg.jpg 83.8 KB · Views: 623 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2019 #7 The answer is: you are using an old version of Android SDK. The old build tools cannot manage multiple assets folders and the files are then missing. The solution is to use B4A Sdk manager with the required components: https://www.b4x.com/b4a.html Upvote 0
The answer is: you are using an old version of Android SDK. The old build tools cannot manage multiple assets folders and the files are then missing. The solution is to use B4A Sdk manager with the required components: https://www.b4x.com/b4a.html
Z ZJP Active Member Licensed User Longtime User Nov 10, 2019 #8 Hi, Thanks a lot Erel. Problem solved. Upvote 0