0% found this document useful (0 votes)
38 views6 pages

Sketchware Pro Build Log Analysis

Debug

Uploaded by

vfxwithprince
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views6 pages

Sketchware Pro Build Log Analysis

Debug

Uploaded by

vfxwithprince
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

2024-03-31T21:23:07.817+0530 D/AppBuilder: Running Sketchware Pro v6.4.

0-SNAPSHOT-
908e121-minApi26 (150)
2024-03-31T21:23:07.823+0530 D/AppBuilder: [Link]'s size is 135 MB (135379650 B)
2024-03-31T21:23:08.102+0530 D/AppBuilder:c: Compiling built-in library resources
took 0 ms
2024-03-31T21:23:08.106+0530 D/AppBuilder:cLLR: About to compile 0 local libraries
2024-03-31T21:23:08.109+0530 D/AppBuilder:c: Compiling local library resources took
3 ms
2024-03-31T21:23:08.112+0530 D/AppBuilder:cPR: Now executing:
[/data/user/0/[Link]/cache/aapt2, compile, --dir,
/storage/emulated/0/.sketchware/mysc/631/app/src/main/res, -o,
/storage/emulated/0/.sketchware/mysc/631/bin/res/[Link]]
2024-03-31T21:23:08.201+0530 D/AppBuilder:c: Compiling project generated resources
took 89 ms
2024-03-31T21:23:08.207+0530 D/AppBuilder:c: Compiling project imported resources
took 1 ms
2024-03-31T21:23:08.214+0530 D/AppBuilder:l:
[/data/user/0/[Link]/cache/aapt2, link, --allow-reserved-package-id,
--auto-add-overlay, --no-version-vectors, --no-version-transitions, --min-sdk-
version, 21, --target-sdk-version, 28, --version-code, 1, --version-name, 1.0, -
I, /data/user/0/[Link]/files/libs/[Link], -A,
/storage/emulated/0/.sketchware/mysc/631/app/src/main/assets, -R,
/storage/emulated/0/.sketchware/mysc/631/bin/res/[Link], -R,
/storage/emulated/0/.sketchware/mysc/631/bin/res/[Link], --java,
/storage/emulated/0/.sketchware/mysc/631/gen, --proguard,
/storage/emulated/0/.sketchware/mysc/631/bin/aapt_rules.pro, --manifest,
/storage/emulated/0/.sketchware/mysc/631/app/src/main/[Link], -o,
/storage/emulated/0/.sketchware/mysc/631/bin/[Link]]
2024-03-31T21:23:08.577+0530 D/AppBuilder:c: Linking resources took 366 ms
2024-03-31T21:23:08.582+0530 D/AppBuilder: Compiling resources took 482 ms
2024-03-31T21:23:08.609+0530 D/AppBuilder: Running Eclipse compiler with these
arguments: [-1.7, -nowarn, -d,
/storage/emulated/0/.sketchware/mysc/631/bin/classes, -cp,
/storage/emulated/0/.sketchware/mysc/631/bin/classes:/data/user/0/
[Link]/files/libs/[Link]:/data/user/0/[Link]/
files/libs/libs/http-legacy-android-28/[Link]:, -proc:none,
/storage/emulated/0/.sketchware/mysc/631/app/src/main/java,
/storage/emulated/0/.sketchware/mysc/631/gen,
/storage/emulated/0/.sketchware/data/631/files/java]
2024-03-31T21:23:09.590+0530 D/AppBuilder: [Link] of Eclipse compiler:
2024-03-31T21:23:09.594+0530 D/AppBuilder: [Link] of Eclipse compiler:
2024-03-31T21:23:09.598+0530 D/AppBuilder: Compiling Java files took 997 ms
2024-03-31T21:23:09.629+0530 D/AppBuilder: Running Dx with these arguments: [--
debug, --verbose, --multi-dex,
--output=/storage/emulated/0/.sketchware/mysc/631/bin/dex,
/storage/emulated/0/.sketchware/mysc/631/bin/classes]
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/DebugActivity$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/MainActivity$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/MainActivity$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/MainActivity$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/R$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/R$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/R$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/R$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/R$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/R$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/SketchLogger$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/SketchwareUtil$[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/[Link]...
processing /storage/emulated/0/.sketchware/mysc/631/bin/classes/./com/mobile/
brands/inpex/SmartApplication$[Link]...
2024-03-31T21:23:10.231+0530 D/AppBuilder: Dx took 607 ms
2024-03-31T21:23:10.238+0530 D/AppBuilder: Will merge these 2 DEX files to
[Link]: [/data/user/0/[Link]/files/libs/dexs/http-legacy-
[Link], /storage/emulated/0/.sketchware/mysc/631/bin/dex/[Link]]
2024-03-31T21:23:10.244+0530 D/AppBuilder: Skipped merging DEX files due to debug
build with minSdkVersion >= 21
Packaging [Link]
/storage/emulated/0/.sketchware/mysc/631/bin/[Link]:
=> [Link]
=> res/drawable-xhdpi-v4/app_icon.png
=> res/drawable-xhdpi-v4/default_image.png
=> res/layout/[Link]
=> [Link]
/data/user/0/[Link]/files/libs/dexs/[Link] =>
[Link]
/storage/emulated/0/.sketchware/mysc/631/bin/dex/[Link] => [Link]
2024-03-31T21:23:10.401+0530 D/AppBuilder: Time passed since starting to compile
resources until building the unsigned APK: 2301 ms
2024-03-31T21:24:24.819+0530 D/BlockLoader: Rs:returned block:
{"code":"","color":0,"name":"getArg","paletteColor":0,"spec":"","spec2":""}
[Link]:
/storage/emulated/0/.sketchware/resources/sounds/629: open failed: ENOENT (No such
file or directory)
at [Link]([Link])
at [Link].<init>([Link])
at [Link].<init>([Link])
at [Link].a(Unknown Source:3)
at [Link].a(Unknown Source:84)
at [Link].g(Unknown Source:23)
at
[Link]([Link])
at [Link].-$$Nest$mloadProject(Unknown
Source:0)
at
[Link]$ProjectLoader.b([Link])
at [Link].a(Unknown Source:11)
at
[Link]$[Link](DesignActivity
.java:1213)
at
[Link]$[Link](DesignActivity
.java:1171)
at [Link]$[Link]([Link])
at [Link]([Link])
at [Link]$SerialExecutor$[Link]([Link])
at
[Link]([Link])
at
[Link]$[Link]([Link])
at [Link]([Link])
Caused by: [Link]: open failed: ENOENT (No such file or
directory)
at [Link](Native Method)
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])
at [Link]$[Link]([Link])
at [Link]([Link])
... 17 more
[Link]:
/storage/emulated/0/.sketchware/resources/sounds/628: open failed: ENOENT (No such
file or directory)
at [Link]([Link])
at [Link].<init>([Link])
at [Link].<init>([Link])
at [Link].a(Unknown Source:3)
at [Link].a(Unknown Source:84)
at [Link].g(Unknown Source:23)
at
[Link]([Link])
at [Link].-$$Nest$mloadProject(Unknown
Source:0)
at
[Link]$ProjectLoader.b([Link])
at [Link].a(Unknown Source:11)
at
[Link]$[Link](DesignActivity
.java:1213)
at
[Link]$[Link](DesignActivity
.java:1171)
at [Link]$[Link]([Link])
at [Link]([Link])
at [Link]$SerialExecutor$[Link]([Link])
at
[Link]([Link])
at
[Link]$[Link]([Link])
at [Link]([Link])
Caused by: [Link]: open failed: ENOENT (No such file or
directory)
at [Link](Native Method)
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])
at [Link]$[Link]([Link])
at [Link]([Link])
... 17 more
[Link]:
/storage/emulated/0/.sketchware/resources/sounds/616: open failed: ENOENT (No such
file or directory)
at [Link]([Link])
at [Link].<init>([Link])
at [Link].<init>([Link])
at [Link].a(Unknown Source:3)
at [Link].a(Unknown Source:84)
at [Link].g(Unknown Source:23)
at
[Link]([Link])
at [Link].-$$Nest$mloadProject(Unknown
Source:0)
at
[Link]$ProjectLoader.b([Link])
at [Link].a(Unknown Source:11)
at
[Link]$[Link](DesignActivity
.java:1213)
at
[Link]$[Link](DesignActivity
.java:1171)
at [Link]$[Link]([Link])
at [Link]([Link])
at [Link]$SerialExecutor$[Link]([Link])
at
[Link]([Link])
at
[Link]$[Link]([Link])
at [Link]([Link])
Caused by: [Link]: open failed: ENOENT (No such file or
directory)
at [Link](Native Method)
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])
at [Link]$[Link]([Link])
at [Link]([Link])
... 17 more
[Link]:
/storage/emulated/0/.sketchware/resources/sounds/615: open failed: ENOENT (No such
file or directory)
at [Link]([Link])
at [Link].<init>([Link])
at [Link].<init>([Link])
at [Link].a(Unknown Source:3)
at [Link].a(Unknown Source:84)
at [Link].g(Unknown Source:23)
at
[Link]([Link])
at [Link].-$$Nest$mloadProject(Unknown
Source:0)
at
[Link]$ProjectLoader.b([Link])
at [Link].a(Unknown Source:11)
at
[Link]$[Link](DesignActivity
.java:1213)
at
[Link]$[Link](DesignActivity
.java:1171)
at [Link]$[Link]([Link])
at [Link]([Link])
at [Link]$SerialExecutor$[Link]([Link])
at
[Link]([Link])
at
[Link]$[Link]([Link])
at [Link]([Link])
Caused by: [Link]: open failed: ENOENT (No such file or
directory)
at [Link](Native Method)
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])
at [Link]$[Link]([Link])
at [Link]([Link])
... 17 more
[Link]:
/storage/emulated/0/.sketchware/resources/sounds/607: open failed: ENOENT (No such
file or directory)
at [Link]([Link])
at [Link].<init>([Link])
at [Link].<init>([Link])
at [Link].a(Unknown Source:3)
at [Link].a(Unknown Source:84)
at [Link].g(Unknown Source:23)
at
[Link]([Link])
at [Link].-$$Nest$mloadProject(Unknown
Source:0)
at
[Link]$ProjectLoader.b([Link])
at [Link].a(Unknown Source:11)
at
[Link]$[Link](DesignActivity
.java:1213)
at
[Link]$[Link](DesignActivity
.java:1171)
at [Link]$[Link]([Link])
at [Link]([Link])
at [Link]$SerialExecutor$[Link]([Link])
at
[Link]([Link])
at
[Link]$[Link]([Link])
at [Link]([Link])
Caused by: [Link]: open failed: ENOENT (No such file or
directory)
at [Link](Native Method)
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])
at [Link]$[Link]([Link])
at [Link]([Link])
... 17 more

Common questions

Powered by AI

The file-not-found exceptions indicate that certain sound files were expected but not found in the specified directory: '/storage/emulated/0/.sketchware/resources/sounds/'. The implications are that any sound-related functions or features would fail to execute properly, potentially causing UI malfunctions or system alerts during runtime . These exceptions were thrown by the IoBridge.open method when files at paths like '/storage/emulated/0/.sketchware/resources/sounds/629' were accessed but did not exist, suggesting missing resource files or incorrect directory paths.

Handling exceptions like FileNotFoundException is significant in the development environment as it allows developers to ensure robust applications by managing situations where expected files are unavailable. In the context described, such exceptions indicate missing resources which, if unhandled, could lead to application crashes or functionality gaps . Proper exception handling aids in diagnosing issues during development, providing diagnostic feedback to the developer or falling back to default states, which ensures smooth operation post-deployment and improves user experience by reducing unexpected failures.

The "open failed: ENOENT" error implies that a file path being referenced does not exist, leading to failed attempts at resource access. In Sketchware Pro, this particularly affects functionalities relying on these non-existent resources, potentially causing runtime errors or feature inaccessibility . Developers can preemptively address such issues by implementing resource validation during the project setup phase, ensuring all referenced files exist and are correctly pathed, and integrating exception handling mechanisms to guide towards fallback processes or user notifications for missing content.

The Eclipse compiler is employed in the APK build process for compiling Java source files. Its inputs include Java files from the paths '/storage/emulated/0/.sketchware/mysc/631/app/src/main/java', '/storage/emulated/0/.sketchware/mysc/631/gen', and '/storage/emulated/0/.sketchware/data/631/files/java', with dependencies specified by the classpath. The output is bytecode compiled into class files saved in the directory '/storage/emulated/0/.sketchware/mysc/631/bin/classes' . This compiled code is then processed by Dx to produce dex files needed for running on Android.

In the APK build process, the AndroidManifest.xml file plays a crucial role as it provides essential information about the application, including package name, components, permissions, and the minimum and target Android SDK versions. It is linked into the APK during the resource linking phase, as indicated by '--manifest, /storage/emulated/0/.sketchware/mysc/631/app/src/main/AndroidManifest.xml' being part of the aapt2 linking command . This file ensures that once the APK is deployed, the runtime environment correctly understands and handles the application’s structure and permissions.

Asynchronous tasks in Sketchware Pro, specifically in DesignActivity's ProjectLoader class, facilitate concurrent operations without blocking the user interface thread. The logic handled within doInBackground methods, such as loading project resources, is performed on a separate thread, allowing the application to remain responsive to user interactions . This approach is crucial for smoothly handling potentially time-consuming I/O operations such as file loading, helping to maintain an interactive user experience without stalls or lags.

Resource compilers like aapt2 play a pivotal role in packaging Android resources and generating the R.java file, which maps resources by identifiers. In the document, aapt2 is utilized to compile and link resources, ensuring that drawable assets, layouts, strings, etc., are processed into binary formats within the APK. The aapt2 command shown, '/data/user/0/com.sketchware.remod/cache/aapt2, compile, --dir,...,' signifies compiling resource directories into a zipped format, and '--link' indicates collating these resources with the manifest and Java output . This process ensures resources are readily available and organized when the application is run.

The document describes the use of multi-dex support during the APK build process, where the '--multi-dex' argument is used with Dx. Multi-dex is significant as it allows the APK to exceed the 64K method limit imposed by the Android runtime by distributing the methods across multiple dex files. This is necessary for larger applications with extensive libraries or codebases . The decision to skip merging DEX files due to a debug build with minSdkVersion >= 21 indicates an optimization choice to simplify the build process as post-Lollipop (API 21), ART assumes support for multi-dex without the need for main dex classes list manually.

Sketchware Pro's build process demonstrates varying efficiency across stages, with the overall time from resource compilation to unsigned APK completion being 2301 ms. Notably, compiling Java files (997 ms) and linking resources (366 ms) are among the more time-consuming steps. Improvements in these areas—such as parallel processing of resource linking or optimization of Eclipse compiler settings—could significantly enhance the build process's overall efficiency . Evaluating these timings offers insights into performance bottlenecks, presenting opportunities to refine build scripts or adjust resource configurations.

The compilation of the Sketchware Pro APK involved several stages with their respective time durations: compiling built-in library resources (0 ms), compiling local library resources (3 ms), compiling project generated resources (89 ms), compiling project imported resources (1 ms), linking resources (366 ms), compiling Java files (997 ms), and running Dx for processing dex files (607 ms). The full process from starting to compiling resources until building the unsigned APK took 2301 ms . Each stage is sequential and builds upon the result of the previous stage, with delays in any stage potentially increasing the total build time.

You might also like