两个项目 一个可以正常在虚拟机上跑
另一个报错
Installation error: Unknown failure
Please check logcat output for more details.
Launch canceled!
logcat什么都没有 空的
正常跑的是java的
报错的是cocos lua的
cocos lua工程打包apk 用cmd 安装到虚拟机中 可以正常运行
打开eclipse 执行了一次 报错的项目
我把log日内容删了 在运行 报错之后日志无内容
不知道什么问题 虚拟机运行不了 换真机就可以
在引入图片的时候的地址数据的时候需要使用require来讲图片作为模块引入,这样才会被webpack正确的打包的项目文件中,否则会因为webpack根据依赖打包而找不到指定的图片
如果是在HTML中的img中通过v-bind引入引入图片,src为对应的数据变量的话也是需要使用require来将图片作为模块引入才会被webpack正常打包
在HTML中直接书写的img地址以及css中引入的图片地址无需使用其他手段正常引用即可被webpack正常打包
另外一个没有安装成功,去看一下日志文件,报啥错误。
!ENTRY org.eclipse.equinox.app 0 0 2018-06-28 16:08:47.843
!MESSAGE Product adtproduct could not be found.
!ENTRY org.eclipse.egit.ui 2 0 2018-06-28 16:08:52.272
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2018-06-28 16:08:52.272
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Administrator'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.ui 2 2 2018-06-28 16:09:14.096
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
打开eclipse 执行了一次 报错的项目
没有找到adtproduct,,!MESSAGE Product adtproduct could not be found.,应该是虚拟机没找倒该设备
查看一下日志,然后路径可能有问题
测试最好不要用虚拟机,总会出现各种奇怪的问题,有时候真机没问题虚拟机会出问题,有时候虚拟机没问题,真机却会出问题,当真机出问题时你就需要看是某些机型的还是所有真机的了