Erel B4X founder Staff member Licensed User Longtime User Jan 3, 2019 #21 What happens when you run the attached project in release mode? Attachments 1.zip 1.zip 8.8 KB · Views: 620
jatko Member Licensed User Longtime User Jan 3, 2019 #22 The log: *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** AutoRunTargetPermission.xml images pskc_schema.xsd sounds webkit main_activity_create (java line: 354) java.io.FileNotFoundException: test.bal at android.content.res.AssetManager.openAsset(Native Method) at android.content.res.AssetManager.open(AssetManager.java:350) at android.content.res.AssetManager.open(AssetManager.java:324) at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:207) at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82) at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209) at b4a.example.test.main._activity_create(main.java:354) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196) at b4a.example.test.main.afterFirstLayout(main.java:104) at b4a.example.test.main.access$000(main.java:17) at b4a.example.test.main$WaitForLayout.run(main.java:82) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6939) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
The log: *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** AutoRunTargetPermission.xml images pskc_schema.xsd sounds webkit main_activity_create (java line: 354) java.io.FileNotFoundException: test.bal at android.content.res.AssetManager.openAsset(Native Method) at android.content.res.AssetManager.open(AssetManager.java:350) at android.content.res.AssetManager.open(AssetManager.java:324) at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:207) at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82) at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209) at b4a.example.test.main._activity_create(main.java:354) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196) at b4a.example.test.main.afterFirstLayout(main.java:104) at b4a.example.test.main.access$000(main.java:17) at b4a.example.test.main$WaitForLayout.run(main.java:82) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6939) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Erel B4X founder Staff member Licensed User Longtime User Jan 4, 2019 #23 1. Where is the project saved? Maybe there is a permission problem. 2. Please enable IDE logs and post them after you run the test program: https://www.b4x.com/android/forum/posts/50478/
1. Where is the project saved? Maybe there is a permission problem. 2. Please enable IDE logs and post them after you run the test program: https://www.b4x.com/android/forum/posts/50478/
jatko Member Licensed User Longtime User Jan 4, 2019 #24 The log Attachments log.txt log.txt 8.4 KB · Views: 677
Erel B4X founder Staff member Licensed User Longtime User Jan 4, 2019 #25 This might be related: "Failed to create folder. Retry: 4" Something is preventing the IDE from creating the folders during compilation. The folders structure should be: Worth making tests with antivirus disables and with the project saved in different places.
This might be related: "Failed to create folder. Retry: 4" Something is preventing the IDE from creating the folders during compilation. The folders structure should be: Worth making tests with antivirus disables and with the project saved in different places.
jatko Member Licensed User Longtime User Jan 4, 2019 #26 I moved project to different location. The folder structure is good. There is no longer worning in log file. But result is still the same. Attachments log.txt log.txt 7.9 KB · Views: 675 ekran.jpg 80.1 KB · Views: 770
I moved project to different location. The folder structure is good. There is no longer worning in log file. But result is still the same.
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2019 #27 Open the APK with 7zip or a similar tool. Is the assets folder empty? Are you using B4A Sdk Manager to manage Android SDK?
Open the APK with 7zip or a similar tool. Is the assets folder empty? Are you using B4A Sdk Manager to manage Android SDK?
Star-Dust Expert Licensed User Longtime User Jan 6, 2019 #28 I had a similar problem two days ago I uninstalled the app from the device, I restarted the IDE(and pc) several times and then it worked
I had a similar problem two days ago I uninstalled the app from the device, I restarted the IDE(and pc) several times and then it worked
jatko Member Licensed User Longtime User Jan 7, 2019 #29 There is no assets folder in apk (after I opened it with 7-zip). There is only META-INF and res folders.
There is no assets folder in apk (after I opened it with 7-zip). There is only META-INF and res folders.
Erel B4X founder Staff member Licensed User Longtime User Jan 7, 2019 #30 You will need to make some tests. Maybe try it on a different computer.
jatko Member Licensed User Longtime User Apr 10, 2019 #31 Thank You for your attention and spending time. Finally I solve every problems. The reason was SDK. I install everything once again and it's working.
Thank You for your attention and spending time. Finally I solve every problems. The reason was SDK. I install everything once again and it's working.