Comments (24)
well, I still get this thing on Win.
build error log...
> androidjs build copying assets ... updating app name... Setting app version ... Version Code: 1000032 Version Name: 1.0.0 updating theme ... Using SDK: 2.0.8 Building Apk ... non zero exit code: failed to build apk brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741701): [C:\Users\█████\AppData\Local\Temp\brut_util_Jar_9066049490261987240.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1000032, --version-name, 1.0.0, --no-version-vectors, -F, C:\Users\█████\AppData\Local\Temp\APKTOOL8919342853195208096.tmp, -0, resources.arsc, -0, META-INF/android.arch.core_runtime.version, -0, META-INF/android.arch.lifecycle_livedata-core.version, -0, META-INF/android.arch.lifecycle_livedata.version, -0, META-INF/android.arch.lifecycle_runtime.version, -0, META-INF/android.arch.lifecycle_viewmodel.version, -0, META-INF/androidx.appcompat_appcompat.version, -0, META-INF/androidx.asynclayoutinflater_asynclayoutinflater.version, -0, META-INF/androidx.coordinatorlayout_coordinatorlayout.version, -0, META-INF/androidx.core_core.version, -0, META-INF/androidx.cursoradapter_cursoradapter.version, -0, META-INF/androidx.customview_customview.version, -0, META-INF/androidx.documentfile_documentfile.version, -0, META-INF/androidx.drawerlayout_drawerlayout.version, -0, META-INF/androidx.fragment_fragment.version, -0, META-INF/androidx.interpolator_interpolator.version, -0, META-INF/androidx.legacy_legacy-support-core-ui.version, -0, META-INF/androidx.legacy_legacy-support-core-utils.version, -0, META-INF/androidx.legacy_legacy-support-v4.version, -0, META-INF/androidx.loader_loader.version, -0, META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version, -0, META-INF/androidx.media_media.version, -0, META-INF/androidx.print_print.version, -0, META-INF/androidx.recyclerview_recyclerview.version, -0, META-INF/androidx.slidingpanelayout_slidingpanelayout.version, -0, META-INF/androidx.swiperefreshlayout_swiperefreshlayout.version, -0, META-INF/androidx.vectordrawable_vectordrawable-animated.version, -0, META-INF/androidx.vectordrawable_vectordrawable.version, -0, META-INF/androidx.versionedparcelable_versionedparcelable.version, -0, META-INF/androidx.viewpager_viewpager.version, -0, png, -0, assets/myapp/node_modules/axios/index.js, -0, assets/myapp/node_modules/better-assert/Makefile, -0, assets/myapp/node_modules/callsite/Makefile, -0, assets/myapp/node_modules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/engine.io/node_modules/debug/node.js, -0, assets/myapp/node_modules/follow-redirects/http.js, -0, assets/myapp/node_modules/follow-redirects/https.js, -0, assets/myapp/node_modules/follow-redirects/node_modules/debug/node.js, -0, assets/myapp/node_modules/localtunnel/node_modules/debug/node.js, -0, assets/myapp/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/parseuri/Makefile, -0, assets/myapp/node_modules/readable-stream/duplex-browser.js, -0, assets/myapp/node_modules/readable-stream/duplex.js, -0, assets/myapp/node_modules/readable-stream/passthrough.js, -0, assets/myapp/node_modules/readable-stream/transform.js, -0, assets/myapp/node_modules/readable-stream/writable-browser.js, -0, assets/myapp/node_modules/readable-stream/lib/internal/streams/stream.js, -0, assets/myapp/node_modules/resolve/test/dotdot/index.js, -0, assets/myapp/node_modules/resolve/test/dotdot/abc/index.js, -0, assets/myapp/node_modules/resolve/test/module_dir/xmodules/aaa/index.js, -0, assets/myapp/node_modules/resolvtest/node_path/x/ccc/index.js, -0, assets/myapp/node_modules/resolve/test/node_path/y/bbb/index.js, -0, assets/myapp/node_modules/resolve/test/node_path/y/ccc/index.js, -0, assets/myapp/node_modules/resolve/test/precedence/ae_modules/resolve/test/precedence/bbb/main.js, -0, assets/myapp/node_modules/resolve/test/resolver/cup.coffee, -0, assets/myapp/node_modules/resolve/test/resolver/foo.js, -0, assets/myapp/node_modules/resolve/test/resolver/bon, -0, assets/myapp/node_modules/resolve/test/resolver/dot_slash_main/index.js, -0, assets/myapp/node_modules/resolve/test/resolver/dot_slash_main/package.json, -0, assets/myapp/node_modules/resolve/test/resolver/incorrect_main/package.json, -0, assets/myapp/node_modules/resolve/test/resolver/quux/foo/index.js, -0, assets/myapp/node_modules/resolve/test/resolver/same_names/foo.js, -0, assets/myapp/node_modules/resolve/test/resolver/same_names/foo/index.js, -0, assets/myapp/node_modules/socket.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/socket.io-parser/node_modules/debug/node.js, -0, assets/myapp/node_modules/xmlhttprequest-ssl/tests/testdata.txt, -0, arsc, -I, C:\Users\█████\.androidjs\cache\1.apk, -S, C:\Users\█████\.androidjs\cache\androidjs-sdk\res, -M, C:\Users\█████\.androidjs\cache\androidjs-sdk\AndroidManifest.xml]> npm view androidjs version
2.0.4
> npm view androidjs-builder version
2.1.8
> java -version
java version "1.8.0_251"
has anybody actually successfully ran&built it on win?
from androidjs.
Can you please provide full log of error ?
from androidjs.
C:\Users\DrMark\Documents\javascript\sample-app\chat-app>androidjs b -f
Testing 'Theme Update' ...
webview: myapp
building
updating... [object Object]
theme attribute not found in package.json
checking Core
using core C:\Users\DrMark.androidjs\androidjs-sdk
removing C:\Users\DrMark.androidjs\androidjs-sdk\assets\myapp/*
copying Assets
copying from C:\Users\DrMark\Documents\javascript\sample-app\chat-app
to: C:\Users\DrMark.androidjs\androidjs-sdk\assets\myapp
[
'C:\Users\DrMark\Documents\javascript\sample-app\chat-app\dist'
]
changing icon
icons Updated
changing configuration
reading C:\Users\DrMark.androidjs\androidjs-sdk\AndroidManifest.xml
{
manifest: {
'$': {
'xmlns:android': 'http://schemas.android.com/apk/res/android',
package: 'com.android.js.mypkg',
platformBuildVersionCode: '28',
platformBuildVersionName: '9'
},
'uses-permission': [ [Object] ],
application: [ [Object] ]
}
}
package name com.android.js.chatapp
{ '$': { 'android:name': 'android.permission.INTERNET' } }
Done!
Updating C:\Users\DrMark.androidjs\androidjs-sdk\res\values\strings.xml
{ _: 'Chat App', '$': { name: 'app_name' } }
Building APK
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
㋛ using androidjs-sdk {"version":"2.0.0"}
I: Checking whether resources has changed...
I: Building resources...
ERROR: failed to build .apk
stderr: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515): [C:\Users\DrMark\AppData\Local\Temp\brut_util_Jar_8849346034426145083.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, C:\Users\DrMark\AppData\Local\Temp\APKTOOL3726620136196898635.tmp, -0, arsc, -0, META-INF/android.arch.core_runtime.version, -0, META-INF/android.arch.lifecycle_livedata-core.version, -0, META-INF/android.arch.lifecycle_livedata.version, -0, META-INF/android.arch.lifecycle_runtime.version, -0, META-INF/android.arch.lifecycle_viewmodel.version, -0, META-INF/androidx.appcompat_appcompat.version, -0, META-INF/androidx.asynclayoutinflater_asynclayoutinflater.version, -0, META-INF/androidx.coordinatorlayout_coordinatorlayout.version, -0, META-INF/androidx.core_core.version, -0, META-INF/androidx.cursoradapter_cursoradapter.version, -0, META-INF/androidx.customview_customview.version, -0, META-INF/androidx.documentfile_documentfile.version, -0, META-INF/androidx.drawerlayout_drawerlayout.version, -0, META-INF/androidx.fragment_fragment.version, -0, META-INF/androidx.interpolator_interpolator.version, -0, META-INF/androidx.legacy_legacy-support-core-ui.version, -0, META-INF/androidx.legacy_legacy-support-core-utils.version, -0, META-INF/androidx.legacy_legacy-support-v4.version, -0, META-INF/androidx.loader_loader.version, -0, META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version, -0, META-INF/androidx.media_media.version, -0, META-INF/androidx.print_print.version, -0, META-INF/androidx.recyclerview_recyclerview.version, -0, META-INF/androidx.slidingpanelayout_slidingpanelayout.version, -0, META-INF/androidx.swiperefreshlayout_swiperefreshlayout.version, -0, META-INF/androidx.vectordrawable_vectordrawable-animated.version, -0, META-INF/androidx.vectordrawable_vectordrawable.version, -0, META-INF/androidx.versionedparcelable_versionedparcelable.version, -0, META-INF/androidx.viewpager_viewpager.version, -0, png, -0, assets/myapp/node_modules/androidjs/node_modules/better-assert/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/callsite/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/androidjs/node_modules/engine.io/node_modules/debug/node.js, -0, assets/myapp/node_modules/androidjs/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/parseuri/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/socket.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/androidjs/node_modules/socket.io-parser/node_modules/debug/node.js, -0, txt, -0, js, -0, assets/myapp/node_modules/better-assert/Makefile, -0, assets/myapp/node_modules/callsite/Makefile, -0, assets/myapp/node_modules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/engine.io/node_modules/debug/node.js, -0, assets/myapp/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/parseuri/Makefile, -0, coffee, -0, json, -0, assets/myapp/node_modules/socket.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/socket.io-parser/node_modules/debug/node.js, -0, res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-hdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-hdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-mdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_searc
ERROR: failed to build .apk
stderr: h_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, arsc, -I, C:\Users\DrMark.androidjs\cache\1.apk, -S, C:\Users\DrMark.androidjs\androidjs-sdk\res, -M, C:\Users\DrMark.androidjs\androidjs-sdk\AndroidManifest.xml]
build process exited with code 1
from androidjs.
Please define theme attributes in packge.json
Check out the documentation for the same
from androidjs.
Same thing. The new package.json
{
"name": "myapp",
"private": true,
"package-name": "chatapp",
"app-name": "Chat App",
"icon": "./assets/icon/app3.png",
"project-type": "webview",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "node main.js",
"build": "androidjs build"
},
"theme": {
"fullScreen": false,
"colorAccent": "#FF0000",
"colorPrimary": "#00FF00",
"colorPrimaryDark": "#FFFFFF"
},
"permission": [
"android.permission.INTERNET"
],
"dist-path": "./dist",
"author": "",
"license": "ISC",
"dependencies": {
"androidjs": "^1.0.0",
"ip": "^1.1.5",
"left-pad": "^1.3.0",
"localtunnel": "^2.0.0",
"public-ip": "^3.0.0",
"socket.io": "^2.2.0"
}
}
The output from the screen.
C:\Users\DrMark\Documents\javascript\sample-app\chat-app>androidjs b -f
Testing 'Theme Update' ...
webview: myapp
building
updating... [object Object]
{
fullScreen: false,
colorAccent: '#FF0000',
colorPrimary: '#00FF00',
colorPrimaryDark: '#FFFFFF'
}
[
{ _: '#FF0000', '$': { name: 'colorAccent' } },
{ _: '#00FF00', '$': { name: 'colorPrimary' } },
{ _: '#FFFFFF', '$': { name: 'colorPrimaryDark' } },
{ _: false, '$': { name: 'android:windowNoTitle' } },
{ _: false, '$': { name: 'android:windowFullscreen' } },
{ _: 'false', '$': { name: 'android:windowActionBar' } }
]
Done!
checking Core
using core C:\Users\DrMark.androidjs\androidjs-sdk
removing C:\Users\DrMark.androidjs\androidjs-sdk\assets\myapp/*
copying Assets
copying from C:\Users\DrMark\Documents\javascript\sample-app\chat-app
to: C:\Users\DrMark.androidjs\androidjs-sdk\assets\myapp
[
'C:\Users\DrMark\Documents\javascript\sample-app\chat-app\dist'
]
changing icon
icons Updated
changing configuration
reading C:\Users\DrMark.androidjs\androidjs-sdk\AndroidManifest.xml
{
manifest: {
'$': {
'xmlns:android': 'http://schemas.android.com/apk/res/android',
package: 'com.android.js.chatapp',
platformBuildVersionCode: '28',
platformBuildVersionName: '9'
},
'uses-permission': [ [Object] ],
application: [ [Object] ]
}
}
package name com.android.js.chatapp
{ '$': { 'android:name': 'android.permission.INTERNET' } }
Done!
Updating C:\Users\DrMark.androidjs\androidjs-sdk\res\values\strings.xml
{ _: 'Chat App', '$': { name: 'app_name' } }
Building APK
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
㋛ using androidjs-sdk {"version":"2.0.0"}
I: Checking whether resources has changed...
I: Building resources...
ERROR: failed to build .apk
stderr: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515): [C:\Users\DrMark\AppData\Local\Temp\brut_util_Jar_6536493275225763578.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, C:\Users\DrMark\AppData\Local\Temp\APKTOOL8530112185571057278.tmp, -0, arsc, -0, META-INF/android.arch.core_runtime.version, -0, META-INF/android.arch.lifecycle_livedata-core.version, -0, META-INF/android.arch.lifecycle_livedata.version, -0, META-INF/android.arch.lifecycle_runtime.version, -0, META-INF/android.arch.lifecycle_viewmodel.version, -0, META-INF/androidx.appcompat_appcompat.version, -0, META-INF/androidx.asynclayoutinflater_asynclayoutinflater.version, -0, META-INF/androidx.coordinatorlayout_coordinatorlayout.version, -0, META-INF/androidx.core_core.version, -0, META-INF/androidx.cursoradapter_cursoradapter.version, -0, META-INF/androidx.customview_customview.version, -0, META-INF/androidx.documentfile_documentfile.version, -0, META-INF/androidx.drawerlayout_drawerlayout.version, -0, META-INF/androidx.fragment_fragment.version, -0, META-INF/androidx.interpolator_interpolator.version, -0, META-INF/androidx.legacy_legacy-support-core-ui.version, -0, META-INF/androidx.legacy_legacy-support-core-utils.version, -0, META-INF/androidx.legacy_legacy-support-v4.version, -0, META-INF/androidx.loader_loader.version, -0, META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version, -0, META-INF/androidx.media_media.version, -0, META-INF/androidx.print_print.version, -0, META-INF/androidx.recyclerview_recyclerview.version, -0, META-INF/androidx.slidingpanelayout_slidingpanelayout.version, -0, META-INF/androidx.swiperefreshlayout_swiperefreshlayout.version, -0, META-INF/androidx.vectordrawable_vectordrawable-animated.version, -0, META-INF/androidx.vectordrawable_vectordrawable.version, -0, META-INF/androidx.versionedparcelable_versionedparcelable.version, -0, META-INF/androidx.viewpager_viewpager.version, -0, png, -0, assets/myapp/node_modules/androidjs/node_modules/better-assert/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/callsite/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/androidjs/node_modules/engine.io/node_modules/debug/node.js, -0, assets/myapp/node_modules/androidjs/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/parseuri/Makefile, -0, assets/myapp/node_modules/androidjs/node_modules/socket.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/androidjs/node_modules/socket.io-parser/node_modules/debug/node.js, -0, txt, -0, js, -0, assets/myapp/node_modules/better-assert/Makefile, -0, assets/myapp/node_modules/callsite/Makefile, -0, assets/myapp/node_modules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/engine.io/node_modules/debug/node.js, -0, assets/myapp/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/parseuri/Makefile, -0, coffee, -0, json, -0, assets/myapp/node_modules/socket.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/socket.io-parser/node_modules/debug/node.js, -0, res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-hdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-hdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-mdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_searc
ERROR: failed to build .apk
stderr: h_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, arsc, -I, C:\Users\DrMark.androidjs\cache\1.apk, -S, C:\Users\DrMark.androidjs\androidjs-sdk\res, -M, C:\Users\DrMark.androidjs\androidjs-sdk\AndroidManifest.xml]
build process exited with code 1
from androidjs.
Please use latest version of androidjs v2.0.1
from androidjs.
C:\Users\DrMark>npm view androidjs version
2.0.1
C:\Users\DrMark>npm view androidjs-builder version
2.0.3
In the output I last pushed up I noticed it said it was using androidjs-sdk 2.0.0
So I look at https://github.com/android-js/androidjs-sdk/config.json and it does say 2.0.0, I assume that means that is the current version.
So my question good sir, is there another version of android-sdk someplace? And what should I do next?
from androidjs.
Do you have java installed on your system?
It requires jdk >= 1.8
from androidjs.
C:\Users\DrMark\Documents\javascript\sample-app\chat-app>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) Client VM (build 25.231-b11, mixed mode, sharing)
C:\Users\DrMark\Documents\javascript\sample-app\chat-app>javac -version
javac 13
C:\Users\DrMark\Documents\javascript\sample-app\chat-app>node -v
v12.13.0
C:\Users\DrMark\Documents\javascript\sample-app\chat-app>npm -v
6.12.0
from androidjs.
Anything? Anyone? What should I look at?
from androidjs.
Same issue for me (ERROR: failed to build .apk) but happen when I try to build a newly project generated with androidjs init.
from androidjs.
Same problem here too. I also tried androidjs-builder v1.0.6 with androidjs v2.0.1 , which generated 'dist' and 'app-debug' but nothing else.
@Chhekur could you look into this? Also, what was the latest version of androidjs and androidjs-builder you had success building .apk?
Thanks.
androidjs v2.0.1
androidjs-builder v2.0.3
Target is sample story app
OS is Windows 10
Java version "1.8.0_241", Java(TM) SE Runtime Environment (build 1.8.0_241-b07), Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)
...\chat-app-example\sample-app\story-app (master -> origin) ([email protected])
λ androidjs b -f
...\chat-app-example\sample-app\story-app ...\chat-app-example\sample-app\story-app\dist
Decompiling...
decompilation skip
Copied the pre-decompiled source to the user side
Copied the user data to the assets folder
Building...
src ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app-debug
dest ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
stderr: S: WARNING: Could not write to (...\AppData\Local\apktool\framework), using ...\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
(node:10236) UnhandledPromiseRejectionWarning: 1
(node:10236) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10236) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
stderr: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741701): [...\AppData\Local\Temp\brut_util_Jar_5886693837972107935.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, ...\AppData\Local\Temp\APKTOOL3855686141899062146.tmp, -0, arsc, -0, png, -0, js, -0, assets/myapp/node_modules/better-assert/Makefile, -0, assets/myapp/node_modules/callsite/Makefile, -0, assets/myapp/node_modules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/engine.io/node_modules/debug/node.js, -0, assets/myapp/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/parseuri/Makefile, -0, coffee, -0, json, -0, assets/myapp/node_modules/socket.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/socket.io-parser/node_modules/debug/node.js, -0, txt, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, arsc, -I, ...\AppData\Local\Temp\1.apk, -S, ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app-debug\res, -M, ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app-debug\AndroidManifest.xml]
build process exited with code 1
from androidjs.
Same problem here too. I also tried androidjs-builder v1.0.6 with androidjs v2.0.1 , which generated 'dist' and 'app-debug' but nothing else.
@Chhekur could you look into this? Also, what was the latest version of androidjs and androidjs-builder you had success building .apk?
Thanks.
androidjs v2.0.1
androidjs-builder v2.0.3
Target is sample story app
OS is Windows 10
Java version "1.8.0_241", Java(TM) SE Runtime Environment (build 1.8.0_241-b07), Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)...\chat-app-example\sample-app\story-app (master -> origin) ([email protected])
λ androidjs b -f
...\chat-app-example\sample-app\story-app ...\chat-app-example\sample-app\story-app\dist
Decompiling...
decompilation skip
Copied the pre-decompiled source to the user side
Copied the user data to the assets folder
Building...
src ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app-debug
dest ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app
I: Using Apktool 2.4.0I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
stderr: S: WARNING: Could not write to (...\AppData\Local\apktool\framework), using ...\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable(node:10236) UnhandledPromiseRejectionWarning: 1
(node:10236) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10236) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
stderr: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741701): [...\AppData\Local\Temp\brut_util_Jar_5886693837972107935.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, ...\AppData\Local\Temp\APKTOOL3855686141899062146.tmp, -0, arsc, -0, png, -0, js, -0, assets/myapp/node_modules/better-assert/Makefile, -0, assets/myapp/node_modules/callsite/Makefile, -0, assets/myapp/node_modules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/engine.io/node_modules/debug/node.js, -0, assets/myapp/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/parseuri/Makefile, -0, coffee, -0, json, -0, assets/myapp/node_modules/socket.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/socket.io-parser/node_modules/debug/node.js, -0, txt, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, arsc, -I, ...\AppData\Local\Temp\1.apk, -S, ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app-debug\res, -M, ...\IdeaProjects\chat-app-example\sample-app\story-app\dist\app-debug\AndroidManifest.xml]build process exited with code 1
This error only occurs in windows, have to look for it.
from androidjs.
build process exited with code 1
This error only occurs in windows, have to look for it.
Thanks for the speedy reply! I will try this on Ubuntu in the meantime.
from androidjs.
build process exited with code 1
This error only occurs in windows, have to look for it.
I tried this using Ubuntu and it works with no problem.
Ubuntu 19.10
androidjs 2.0.1
androidjs-builder 2.0.3
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu119.10.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu119.10.1, mixed mode, sharing)
Target is sample app story app
from androidjs.
Hey, we have release new version of [email protected]
, which may solve all the existing problem.
So you can upgrade to the latest version 2.1.4
and enjoy.
Follow these instruction to upgrade androidjs-builder
to latest
$ npm uninstall -g androidjs-builder
$ npm install -g [email protected]
Feel free to ask in case of any problem ; )
from androidjs.
Hey, we have created a slack channel for support & discussion: join here
from androidjs.
same here, any solution?
from androidjs.
@madcowtricks @zurachf @Spown
you need to download android SDK and then add it to the path. add the tool file and platform-tool to the path.
if not work download Gradle then add to the path.
I made this and work for me. I am using windows 10 and android 2.1.9 and android-builder 2.1.9
from androidjs.
@madcowtricks : how? I know how to use npm/javascript, but have not a clue about android.
added to env:
ANDROID_SDK_ROOT: C:\Android
Added to PATH:
- C:\Android
- C:\Android\platforms
- C:\Android\tools
en still i do get the error.
from androidjs.
@Machine-3R you don't need to download anything related to android while working with Android JS.
Can you please tell me what is the exact problem you are facing, may be I can help you with that?
from androidjs.
package.json:
{
"version": "1.0.0",
"name": "js-androidjs-test",
"app-name": "js-androidjs-test",
"package-name": "webview",
"project-type": "webview",
"icon": "./assets/icon/icon.png",
"dist-path": "./dist",
"permission": [
"android.permission.INTERNET"
],
"description": "",
"main": "main.js",
"scripts": {
"start:dev": "node .",
"build": "androidjs build"
},
"author": "",
"license": "ISC",
"dependencies": {
"androidjs": "^2.0.4"
},
"project-name": "js-androidjs-test",
"theme": {
"fullScreen": true
}
}
problem:
$ androidjs b -f
Downloading: https://github.com/android-js/androidjs-sdk/archive/master.zip
Data: 275 KB : █⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
(removed)
Data: 34177 KB : ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿█⣿⣿⣿⣿⣿⣿⣿
failed to download, retrying..
re-trying
Data: 265 KB : █⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
(removed)
Data: 33989 KB : ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿█⣿⣿⣿⣿⣿⣿⣿
failed to download, retrying..
re-trying
Data: 361 KB : █⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
(removed)
Data: 34437 KB : ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
Data: 34509 KB :███████████████████████████████████████
███████████ √
copying assets ...
updating app name...
Setting app version ...
Version Code: 1
Version Name: 1.0
updating theme ...
Using SDK: 2.2.0
Building Apk ...
building ...2 : █⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
(removed)
building ...4 : ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿█⣿
building ...4 : ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿█
non zero exit code: failed to build apk
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -10737
41515): [C:\cygwin64\tmp\brut_util_Jar_8386841340937532174.tmp, p, --forced-package-id, 127, -
-min-sdk-version, 19, --target-sdk-version, 30, --version-code, 1000032, --version-name, 1.0.0
, --no-version-vectors, -F, C:\cygwin64\tmp\APKTOOL129295086593881993.tmp, -0, resources.arsc,
-0, META-INF/android.arch.core_runtime.version, -0, META-INF/android.arch.lifecycle_livedata-
core.version, -0, META-INF/android.arch.lifecycle_livedata.version, -0, META-INF/android.arch.
lifecycle_runtime.version, -0, META-INF/android.arch.lifecycle_viewmodel.version, -0, META-INF
/androidx.appcompat_appcompat.version, -0, META-INF/androidx.asynclayoutinflater_asynclayoutin
flater.version, -0, META-INF/androidx.coordinatorlayout_coordinatorlayout.version, -0, META-IN
F/androidx.core_core.version, -0, META-INF/androidx.cursoradapter_cursoradapter.version, -0, M
ETA-INF/androidx.customview_customview.version, -0, META-INF/androidx.documentfile_documentfil
e.version, -0, META-INF/androidx.drawerlayout_drawerlayout.version, -0, META-INF/androidx.frag
ment_fragment.version, -0, META-INF/androidx.interpolator_interpolator.version, -0, META-INF/a
ndroidx.legacy_legacy-support-core-ui.version, -0, META-INF/androidx.legacy_legacy-support-cor
e-utils.version, -0, META-INF/androidx.loader_loader.version, -0, META-INF/androidx.localbroad
castmanager_localbroadcastmanager.version, -0, META-INF/androidx.print_print.version, -0, META
-INF/androidx.slidingpanelayout_slidingpanelayout.version, -0, META-INF/androidx.swiperefreshl
ayout_swiperefreshlayout.version, -0, META-INF/androidx.vectordrawable_vectordrawable-animated
.version, -0, META-INF/androidx.vectordrawable_vectordrawable.version, -0, META-INF/androidx.v
ersionedparcelable_versionedparcelable.version, -0, META-INF/androidx.viewpager_viewpager.vers
ion, -0, png, -0, assets/myapp/node_modules/axios/index.js, -0, assets/myapp/node_modules/bett
er-assert/Makefile, -0, assets/myapp/node_modules/callsite/Makefile, -0, assets/myapp/node_mod
ules/engine.io-client/node_modules/debug/node.js, -0, assets/myapp/node_modules/engine.io/node
_modules/debug/node.js, -0, assets/myapp/node_modules/follow-redirects/http.js, -0, assets/mya
pp/node_modules/follow-redirects/https.js, -0, assets/myapp/node_modules/follow-redirects/node
_modules/debug/node.js, -0, assets/myapp/node_modules/localtunnel/node_modules/debug/node.js,
-0, assets/myapp/node_modules/parseqs/Makefile, -0, assets/myapp/node_modules/parseuri/Makefil
e, -0, assets/myapp/node_modules/resolve/test/dotdot/index.js, -0, assets/myapp/node_modules/r
esolve/test/dotdot/abc/index.js, -0, assets/myapp/node_modules/resolve/test/module_dir/xmodule
s/aaa/index.js, -0, assets/myapp/node_modules/resolve/test/module_dir/ymodules/aaa/index.js, -
0, assets/myapp/node_modules/resolve/test/module_dir/zmodules/bbb/main.js, -0, assets/myapp/no
de_modules/resolve/test/node_path/x/aaa/index.js, -0, assets/myapp/node_modules/resolve/test/n
ode_path/x/ccc/index.js, -0, assets/myapp/node_modules/resolve/test/node_path/y/bbb/index.js,
-0, assets/myapp/node_modules/resolve/test/node_path/y/ccc/index.js, -0, assets/myapp/node_mod
ules/resolve/test/precedence/aaa.js, -0, assets/myapp/node_modules/resolve/test/precedence/bbb
.js, -0, assets/myapp/node_modules/resolve/test/precedence/aaa/index.js, -0, assets/myapp/node
_modules/resolve/test/precedence/aaa/main.js, -0, assets/myapp/node_modules/resolve/test/prece
dence/bbb/main.js, -0, assets/myapp/node_modules/resolve/test/resolver/cup.coffee, -0, assets/
myapp/node_modules/resolve/test/resolver/foo.js, -0, assets/myapp/node_modules/resolve/test/re
solver/baz/package.json, -0, assets/myapp/node_modules/resolve/test/resolver/baz/quux.js, -0,
assets/myapp/node_modules/resolve/test/resolver/dot_main/index.js, -0, assets/myapp/node_modul
es/resolve/test/resolver/dot_main/package.json, -0, assets/myapp/node_modules/resolve/test/res
olver/dot_slash_main/index.js, -0, assets/myapp/node_modules/resolve/test/resolver/dot_slash_m
ain/package.json, -0, assets/myapp/node_modules/resolve/test/resolver/incorrect_main/package.j
son, -0, assets/myapp/node_modules/resolve/test/resolver/quux/foo/index.js, -0, assets/myapp/n
ode_modules/resolve/test/resolver/same_names/foo.js, -0, assets/myapp/node_modules/resolve/tes
t/resolver/same_names/foo/index.js, -0, assets/myapp/node_modules/socket.io-client/node_module
ode_modules/resolve/test/resolver/same_names/foo.js, -0, assets/myapp/node_modules/resolve/tes
t/resolver/same_names/foo/index.js, -0, assets/myapp/node_modules/socket.io-client/node_module
ode_modules/resolve/test/resolver/same_names/foo.js, -0, assets/myapp/node_modules/resolve/tes
t/resolver/same_names/foo/index.js, -0, assets/myapp/node_modules/socket.io-client/node_module
ode_modules/resolve/test/resolver/same_names/foo.js, -0, assets/myapp/node_modules/resolve/tes
t/resolver/same_names/foo/index.js, -0, assets/myapp/node_modules/socket.io-client/node_module
s/debug/node.js, -0, assets/myapp/node_modules/socket.io-parser/node_modules/debug/node.js, -0
, assets/myapp/node_modules/xmlhttprequest-ssl/tests/testdata.txt, -0, arsc, -I, C:\cygwin64\h
ome\Edward.androidjs\cache\1.apk, -S, C:\cygwin64\home\Edward.androidjs\cache\androidjs-sdk
res, -M, C:\cygwin64\home\Edward.androidjs\cache\androidjs-sdk\AndroidManifest.xml]
and i don't know how to solve it..
from androidjs.
@Machine-3R this error is mostly because of APK TOOL
we are using in the builder, so what you can do is that download the latest APK TOOL
replace them in builder then it should work or you can wait for some days we are already working on builder to release new version or you can move linux from windows will fix that isseue.
from androidjs.
I replaced the apktool with a recent version and after "$androidjs b -f" I have an .apk..
$ androidjs b -f
Downloading: https://github.com/android-js/androidjs-sdk/archive/master.zip
failed to download, retrying..
re-trying
Data: 34509 KB :███████████████████████████████████████
███████████ √
copying assets ...
updating app name...
Setting app version ...
Version Code: 1
Version Name: 1.0
updating theme ...
Using SDK: 2.2.0
building ...5 : ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿█⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
building ...6 :███████████████████████████████████████
signing ...21 :███████████████████████████████████████⣿
███████████ √
signing ...1 : █⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
After some struggle I managed to install the apk on my phone, and it works.
Thx a lot.. : )
from androidjs.
Related Issues (20)
- cannot use ajax with jquery
- error in window.open();
- Node integration in frontend? HOT 1
- display: grid; HOT 15
- DOM problem HOT 1
- status bar and bottom bar not dissapearing no matter what
- Do you put the "app.location.get();" on the back or front?
- ️🔥 How/Where can we modify AndroidJS java base or extend androidjs react native layer through npm react native addons ?
- Failed to build apk
- Failed to load signer "signer #1" HOT 2
- Application startup delay
- Module "node:fs" crashes the app
- no apk HOT 1
- ReferenceError: TextDecoder is not defined
- APK installation fails after building for release
- MediaRecorder not accepted in browser HOT 1
- vue-cli
- build exe for desktop app
- ReferenceError: fetch is not defined (at backend) ???
- Let user choose PORT or change default PORT from 3000
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidjs.