markdown WebAR的Android开发设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown WebAR的Android开发设置相关的知识,希望对你有一定的参考价值。

# Android development setup for WebAR
- Setup directory structure on local development machine (C:\development\projects\nowlab\helloworld)
- nvm use v10.3.0
- Visit [this link](https://github.com/google-ar/arcore-android-sdk/releases/download/sdk-preview/arcore-preview.apk) from a web browser on your Android device to download and install the ARCore Developer Preview 1 APK.
- Visit [this link](https://github.com/google-ar/WebARonARCore/raw/webarcore_57.0.2987.5/apk/WebARonARCore.apk) from a web browser on your Android device to download and install the WebARonARCore APK.
- Open the newly installed app, WebARonARCore and hit the examples to make sure the browser installed properly
[Configure Android device for remote debugging over USB](https://developer.android.com/studio/debug/dev-options#enable)
- Open settings in Android device, tap 'system', tap 'about phone', then tap 'build number' seven times to enable developer mode
- Go back one screen and tap on 'developer options'
- Toggle 'USB Debugging' on
[Setup local development machine to debug remote client](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/)
- Open chrome on developer machine and press F12 to open the developer tools
- In DevTools, click the Main Menu Main Menu then select More tools > Remote devices
- Connect Android device to development machine
- Look at Android device and accept any prompts for allowing USB debugging
- DevTools should show device as connected
Start up web server on development machine
- In terminal, navigate to the project directory where the web server will be running
- run `npm install -g live-server`
- run `live-server` to start a web server at 'localhost:8080'
[Access development machine's web server from Android device](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/local-server)
- Go back to chrome dev tools on the development machine
- In the Inspect Devices dialog in DevTools, enable Port forwarding
- Click Add rule
- Set device port to something like '8000' and local address to the development machine's running web server. ex. 'localhost:8080'

以上是关于markdown WebAR的Android开发设置的主要内容,如果未能解决你的问题,请参考以下文章

markdown 在Mac上设置Android开发环境

markdown 在Mac上轻松设置Android开发环境

markdown 在Mac上轻松设置Android开发环境

markdown 在Mac上轻松设置Android开发环境

markdown Android的开发之TextView的中间设置横线,适用于电商项目,商品原价之类的功能。

Android课设报告 123 赵乾