jjzjj

Unresolved

全部标签

ios - swift 2 + SwiftyJSON : Use of unresolved identifier error

我正在使用iOS9在Swift2中制作APIREST应用程序,使用SwiftyJSON支持Swift2(https://github.com/andrelind/SwiftyJSON)。当我获取数据并打印时,我使用以下代码:RestApiManager.sharedInstance.getRandomUser{jsoninletresults=json["results"]for(index:String,subJson:JSON)inresults{varuser=subJson["user"].stringprint(user)}}使用这段代码,我得到了这个错误:varuser=s

ios - iOS 10 核心数据保存错误 : Unresolved error Error Domain=NSCocoaErrorDomain Code=133020

我一直在测试iOS10中的新核心数据堆栈。我的测试应用程序将JSON数据解析为核心数据,我试图在用户访问UI时实现这一点。我正在使用默认核心数据堆栈并使用后台上下文。在AppDelegate.m中:-(NSPersistentContainer*)persistentContainer{//Thepersistentcontainerfortheapplication.Thisimplementationcreatesandreturnsacontainer,havingloadedthestorefortheapplicationtoit.@synchronized(self){if

hadoop - “WARN hdfs.DFSUtil: Namenode for null remains unresolved for ID null.”

我想在配置后测试我的hadoop是否运行良好,但是在输入之后,命令start-all.sh在终端中显示如下错误WARNhdfs.DFSUtil:NamenodefornullremainsunresolvedforIDnull.Checkyourhdfs-site.xmlfiletoensurenamenodesareconfiguredproperly.Startingnamenodeson[master]master:ssh:Couldnotresolvehostnamemaster:Nameorservicenotknown我检查了我的hdfs-site.xml文件并像其他人那样

android - 最新 Android Studio 更新 3.3.2 后 Unresolved DataBinding 依赖关系

在最新更新到AndroidStudio之后,DataBinding依赖项丢失了。我收到此错误消息:ERROR:Failedtoresolve:androidx.databinding:databinding-runtime:3.3.2ShowinProjectStructuredialogAffectedModules:appERROR:Failedtoresolve:androidx.databinding:databinding-adapters:3.3.2ShowinProjectStructuredialogAffectedModules:app这是我应用程序的build.gr

android - 从 Proguard 获取 "unresolved references"和 "can' t 找到父类(super class)警告

我已经将一些第三方源集成到我的android项目中,但在启用混淆器的情况下构建它时遇到了问题。构建失败:Warning:therewere123unresolvedreferencestoclassesorinterfaces.Youmayneedtoaddmissinglibraryjarsorupdatetheirversions.Ifyourcodeworksfinewithoutthemissingclasses,youcansuppressthewarningswith'-dontwarn'options.(http://proguard.sourceforge.net/ma

android - Unresolved reference : LinearLayoutManager/RecyclerView

我开始使用Kotlin构建一个电影数据库应用程序,这是基于我在网上找到的教程(详见thislink。在构建电影fragment文件时,我注意到一个“未解析的引用:LinearLayoutManager”和一个“未解析的引用:RecyclerView”“错误。我已经包含了下面的代码,除了那些错误之外,一切都像教程一样匹配:importandroid.os.Bundleimportandroid.support.v4.app.Fragmentimportandroid.support.v7.widget.LinearLayoutManagerimportandroid.support.v7

android - Kotlin 中 Unresolved 引用 Wea​​rableRecyclerView.Adapter 错误

我正在尝试创建一个带有项目列表的AndroidWear应用程序。为了启用循环滚动,我使用WearableRecyclerView通过在Kotlin编码。但是面对这个错误Unresolvedreference:Adapter同样的代码在java中并没有抛出这个错误!我还提到了kotlin中的内部类和外部类概念。Adapter类是RecyclerView的抽象类,它又由WearableRecyclerView扩展。任何指导都会很有用,谢谢!!这是我的代码classCustomRecyclerAdapter(context:Context,dataSet:Array):WearableRec

android - AndroidManifest.xml 中的 "Unresolved class"错误

我的listxml文件中出现错误:它在这一行给我一个错误:android:name=".PlaySongService"错误信息如下:Unresolvedclass'PlaySongService'ValidatesresourcereferenceinsideAndroidXMLfiles.我没有在Stackoverflow和其他地方找到任何有助于解决我的错误的方法。谁知道我做错了什么? 最佳答案 唯一对我有用的是File>InvalidateCaches/Restart。 关于and

java - Unresolved 类 '@string/appbar_scrolling_view_behavior'

更新AndroidStudio后,我在viewpager的xml中收到此错误。奇怪的是它工作正常,项目构建没有任何问题。为什么'@string/appbar_scrolling_view_behavior'是一个Unresolved类?我的viewpager在CoordinatorLayout中。 最佳答案 那些使用或迁移到AndroidX的人,可以使用以下修复来消除错误。这也适用于AndroidStudio3.4app:layout_behavior="com.google.android.material.appbar.AppB

android - Unresolved reference : viewModelScope - Android KTX

我正在尝试使用新的androidktx库提供的新viewModelScope()函数。在gradle文件中,我添加了:implementation'androidx.lifecycle:lifecycle-viewmodel-ktx:2.0.0'implementation'androidx.core:core-ktx:1.0.2'但是当我访问viewModelScope()时,我得到了Unresolvedreference:viewModelScope错误:classMainViewModel(application:Application):AndroidViewModel(app