我目前正在开发mvc4 web api odata服务,我希望返回用户列表中的用户列表.当我想要获得用户时,我收到以下错误:
错误:
<m:innererror>
<m:message>
The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'.
</m:message>
<m:type>System.InvalidOperationException</m:type>
<m:stacktrace/>
<m:internalexception>
<m:message>
No NavigationLink factory was found for the navigation property 'Languages' from entity type 'MvcWebRole1.Models.User' on entity set 'Users'. Try calling HasNavigationPropertyLink on the EntitySetConfiguration.
Parameter name: navigationProperty
</m:message>
<m:type>System.ArgumentException</m:type>
<m:stacktrace>
at System.Web.Http.OData.Builder.EntitySetLinkBuilderAnnotation.BuildNavigationLink(EntityInstanceContext instanceContext, IEdmNavigationProperty navigationProperty, ODataMetadataLevel metadataLevel)
at System.Web.Http.OData.Formatter.Serialization.ODataEntityTypeSerializer.WriteNavigationLinks(EntityInstanceContext context, ODataWriter writer, ODataSerializerContext writeContext)
at System.Web.Http.OData.Formatter.Serialization.ODataEntityTypeSerializer.WriteEntry(Object graph, IEnumerable`1 propertyBag, ODataWriter writer, ODataSerializerContext writeContext)
at …Run Code Online (Sandbox Code Playgroud) 我正在将我的遗留项目从Eclipse迁移到Android工作室.我做了以下事情:
我的项目根文件夹包含3个库项目:Actionbarsherlock,Authbahn和库.我的根文件夹还包含名为JohelpenHulpverlener的主项目.

解决了很多错误后,我收到以下错误:
Error:A problem was found with the configuration of task ':checkDebugManifest'.
> File 'C:\android\jeugdformaat\JohelpenHulpverlener\AndroidManifest.xml' specified for property 'manifest' does not exist.
Run Code Online (Sandbox Code Playgroud)
我的root build.gradle看起来像这样:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
dependencies {
compile files('libs/android-support-v4.jar')
compile project(":actionbarsherlock")
}
android {
compileSdkVersion 17
buildToolsVersion "19.0.3"
defaultConfig …Run Code Online (Sandbox Code Playgroud) 我正在处理的应用程序的功能是人们可以互相聊天.在ChatFragment中.我想拥有与Whatsapp和Telegram相同的功能,你可以点击表情符号按钮,键盘切换到Emojipicker 没有任何过渡,其中表情符号拾取器具有与我的键盘相同的布局高度(就像whatsapp和电报).
当我实现它并从软件键盘切换到表情符号键盘时,我的软件键盘将消失,我的表情符号的可见性将从GONE设置为VISIBLE.除了丑陋的越野车过渡,因为布局的变化,所有设备的尺寸也相同,但不记得键盘有不同的高度.我使用以下emojipicker https://github.com/rockerhieu/emojicon
任何人都知道如何更改我的实现,以使我的emojipicker与我的键盘高度相同?我尝试了各种各样的东西,但没有工作..从我的chatfragment和布局下面的一些代码.
ChatFragment
public class ChatFragment extends W3SFragment implements IResultListener {
private int chatContactId;
private Context context;
private DatabaseHelper databaseHelper;
private InputMethodManager inputManager;
private View fragmentView;
private TextView statusText;
private ImageView emojiconIconImageView;
private View emojiconViewContainer;
private ChatContact chatContact;
public EmojiconEditText emojiconEditText;
public ChatFragment(int chatContactId) {
this.chatContactId = chatContactId;
databaseHelper = new DatabaseHelper();
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.context = getActivity();
getSherlockActivity().getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup …Run Code Online (Sandbox Code Playgroud)