首先,让我引导您完成我收到错误的过程.首先,我在Android Studio 3.0.1中创建了一个成功的Glass项目.我的其他项目将完全运行,但是当我运行我的玻璃应用程序时,我在编辑配置中收到错误"请选择Android SDK".因此,我尝试使用"启动默认活动"和"目标USB设备"更改编辑配置.不幸的是,这并没有解决我的问题.
这是一个教程,展示了如何创建和部署Google Glass应用程序.
关于这个问题,我已经研究过很多,但是我找到的每个资源都说"同步gradle".这个解决方案不能解决我的问题,也不能解决我的问题.
下面是"编辑配置"窗口的示例.
我已经创建RecyclerView在 fragment里面activity,所有的工作都很好,但是当我这样做notifyDataSetChanged(),以adapter从activity通过interface,我得到一个错误" lateinit属性adapter尚未初始化 ",但我已经initialized adapter
class BuildingListFragment : Fragment(), MainActivity.EditInterface {
lateinit var adapter: BuildingListAdapter
private var mListener: OnFragmentInteractionListener? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
return inflater!!.inflate(R.layout.fragment_building_list, container, false)
}
override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
val buildingList = ArrayList<BuildingDetailModel>()
val …Run Code Online (Sandbox Code Playgroud) 是否可以在AR GeoObject中对3D模型AR.GeoLocation使用遮挡?
我们正在开发一个应用程序,当您进入预定义的地理围栏区域时,该应用程序将在建筑物的某个高度显示广告横幅.
现在,在当前阶段,使用wikitude,我们可以将AR对象模型放置在建筑物上.但问题在于,能够看到模型超越墙壁并在目标建筑物之间建造.我们希望避免这种情况,并且仅在目标建筑物与相机之间没有障碍时才显示广告.
我的困惑是我们希望封堵器在其行为中是动态的.因此,无论是建筑物,树木,手还是其他任何东西,都应该应用效果,并且不会针对被阻挡的部分显示模型.
另外,我附上了几个网址供您参考,以展示我们正在寻找的内容
var World = {
loaded: false,
rotating: false,
init: function initFn() {
this.createModelAtLocation();
},
createModelAtLocation: function createModelAtLocationFn() {
/*
First a location where the model should be displayed will be defined. This location will be relativ to the user.
*/
//var location = new AR.RelativeLocation(null, 5, 0, 2);
var geoLoc = new AR.GeoLocation(23.027390, 72.558721, 320.);//National Handloom
//var geoLoc = new AR.GeoLocation(23.028350, 72.506674, 320.);//Iscon
//var geoLoc = new AR.GeoLocation(26.206274, 73.048096, 320.);//Jodhpur
//var geoLoc …Run Code Online (Sandbox Code Playgroud) 我正在尝试运行我 1.5 年的项目,我收到了很多错误,我已经更新了所有依赖项。
我遇到了一些错误,女巫我不知道
在模块 auto-value-1.2.jar (com.google.auto.value:auto-value:1.2) 和 auto-value-annotations-1.6.3.jar (com .google.auto.value:auto-value-annotations:1.6.3) 在模块 auto-value-1.2.jar (com.google.auto.value:auto-value :1.2) 和 auto-value-annotations-1.6.3.jar (com.google.auto.value:auto-value-annotations:1.6.3) 在模块中发现重复类 com.google.auto.value.AutoValue$Builder auto-value-1.2.jar (com.google.auto.value:auto-value:1.2) 和 auto-value-annotations-1.6.3.jar (com.google.auto.value:auto-value-annotations:1.6 .3) 在模块 commons-codec-1.3.jar (commons-codec:commons-codec:1.3) 和 org-apache-commons-codec.jar (org-apache-公共编解码器。jar) 在模块 commons-codec-1.3.jar (commons-codec:commons-codec:1.3) 和 org-apache-commons-codec.jar (org-apache-commons) 中发现的重复类 org.apache.commons.codec.BinaryEncoder -codec.jar) 在模块 commons-codec-1.3.jar (commons-codec:commons-codec:1.3) 和
如果我不使用“auto-value-annotations-1.6.3.jar”,则存在许多相同类型的错误
下面是我的gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "***"
minSdkVersion 16
targetSdkVersion 28
versionCode 107
versionName "1.0"
multiDexEnabled true
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
}
buildTypes { …Run Code Online (Sandbox Code Playgroud) android ×4
build.gradle ×1
google-glass ×1
java ×1
javascript ×1
kotlin ×1
wikitude ×1
wikitude-sdk ×1