linfaxin / androiduix Goto Github PK
View Code? Open in Web Editor NEWMake a high-performance mobile web app / SPA with Android UI
Home Page: http://linfaxin.github.io/AndroidUIX/
License: MIT License
Make a high-performance mobile web app / SPA with Android UI
Home Page: http://linfaxin.github.io/AndroidUIX/
License: MIT License
MacMini:AndroiUIX user$ androidui create
downloading templates...
template default not found!
MacMini:AndroiUIX user$
创建不了工程呢
Is this support Material Design ?
支持不?
或者计划开发中?
Uncaught TypeError: Class constructor ActionBarActivity cannot be invoked without 'new'
at new MainActivity (MainActivity.ts:9)
at ActivityThread.performLaunchActivity (android-ui.js:25346)
at ActivityThread.handleLaunchActivity (android-ui.js:25323)
at AndroidUI.initLaunchActivity (android-ui.js:25649)
at AndroidUI.init (android-ui.js:25623)
at new AndroidUI (android-ui.js:25604)
at initElement (android-ui.js:25521)
at HTMLDocument.$domReady (android-ui.js:25486)
/StormProject/AndroidUI4Web-HelloWorld-master/androidui-sdk/android-ui.d.ts
Error:(667, 14) TS1005: ';' expected.
这是编码的问题,还是什么问题啊?
另外提示我当前版本的javaScript不支持Classes 用的是EcmaScript, 另外还有一些版本,但是不知道用哪个,好像别的不支持相应的浏览器的意思,只会写android的小白求指教
C:\Users\chengbiao\WebstormProjects\auix-demo>androidui create
downloading templates...
downloading project dependencies...
build project...
{ Error: ENOENT: no such file or directory, stat 'C:\Users\chengbiao\WebstormProjects\auix-demo\node_modules\androiduix\dist'
at Error (native)
at Object.fs.statSync (fs.js:987:18)
at Object.statSync (C:\Users\chengbiao\AppData\Roaming\npm\node_modules\androidui-cli\node_modules\graceful-fs\polyfills.js:297:22)
at Object.copySync (C:\Users\chengbiao\AppData\Roaming\npm\node_modules\androidui-cli\node_modules\fs-extra\lib\copy-sync\copy-sync.js:20:58)
at C:\Users\chengbiao\AppData\Roaming\npm\node_modules\androidui-cli\index.js:39:21
at ChildProcess.exithandler (child_process.js:197:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
errno: -4058,
code: 'ENOENT',
syscall: 'stat',
path: 'C:\Users\chengbiao\WebstormProjects\auix-demo\node_modules\androiduix\dist' }
exec error: Error: Command failed: npm run build
npm WARN auix-demo No description
module.js:471
throw err;
^
Error: Cannot find module 'jsdom'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\chengbiao\WebstormProjects\auix-demo\build_res.js:6:13)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\chengbiao\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build-res"
npm ERR! node v6.9.5
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! @ build-res: echo 'building resource...' && node build_res.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build-res script 'echo 'building resource...' && node build_res.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! echo 'building resource...' && node build_res.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\chengbiao\WebstormProjects\auix-demo\npm-debug.log
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\chengbiao\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v6.9.5
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! @ build: npm run build-install && npm run build-res && npm run build-ts2js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script 'npm run build-install && npm run build-res && npm run build-ts2js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build-install && npm run build-res && npm run build-ts2js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\chengbiao\WebstormProjects\auix-demo\npm-debug.log
stderr:
npm WARN auix-demo No description
module.js:471
throw err;
^
Error: Cannot find module 'jsdom'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\chengbiao\WebstormProjects\auix-demo\build_res.js:6:13)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\chengbiao\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build-res"
npm ERR! node v6.9.5
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! @ build-res: echo 'building resource...' && node build_res.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build-res script 'echo 'building resource...' && node build_res.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! echo 'building resource...' && node build_res.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\chengbiao\WebstormProjects\auix-demo\npm-debug.log
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\chengbiao\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v6.9.5
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! @ build: npm run build-install && npm run build-res && npm run build-ts2js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script 'npm run build-install && npm run build-res && npm run build-ts2js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build-install && npm run build-res && npm run build-ts2js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\chengbiao\WebstormProjects\auix-demo\npm-debug.log
stdout:
@ build C:\Users\chengbiao\WebstormProjects\auix-demo
npm run build-install && npm run build-res && npm run build-ts2js
@ build-install C:\Users\chengbiao\WebstormProjects\auix-demo
echo 'installing dependencies...' && npm install --registry=https://registry.npm.taobao.org
'installing dependencies...'
@ build-res C:\Users\chengbiao\WebstormProjects\auix-demo
echo 'building resource...' && node build_res.js
'building resource...'
Only 30fps in safari, but 60fps in other app's browser
1.Install ts2kt https://github.com/Kotlin/ts2kt
2.Converter of android-ui.d.ts to Kotlin declarations (stubs)
3.Dev in Kotlin your app.
4.Build KotlinJS project.
wait bug fixed
https://github.com/Kotlin/ts2kt/issues/53
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.