草庐IT

first_line

全部标签

dart - Flutter 错误 - 断言失败 : line 213 pos 15: 'data != null' : is not true at the time of fetching data from firestore

使用Flutter开发Android应用程序。尝试从Firestore获取文档并通过小部件显示在屏幕上。这是我的代码...import'dart:async';import'dart:io';import'package:flutter/material.dart';import'package:shared_preferences/shared_preferences.dart';import'package:image_picker/image_picker.dart';import'package:firebase_storage/firebase_storage.dart';i

dart - Flutter 错误 - 断言失败 : line 213 pos 15: 'data != null' : is not true at the time of fetching data from firestore

使用Flutter开发Android应用程序。尝试从Firestore获取文档并通过小部件显示在屏幕上。这是我的代码...import'dart:async';import'dart:io';import'package:flutter/material.dart';import'package:shared_preferences/shared_preferences.dart';import'package:image_picker/image_picker.dart';import'package:firebase_storage/firebase_storage.dart';i

java - 安卓.view.InflateException : Binary XML file line #4: Error inflating class SwitchPreference

我正在尝试读取我的应用程序首选项,但出现此错误:设置Activity:publicclassSettingsextendsPreferenceActivity{@OverrideprotectedvoidonCreate(BundlesavedInstanceState){//TODOAuto-generatedmethodstubsuper.onCreate(savedInstanceState);getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLA

Android 设计支持库 : TabLayout tabs text in single line

这个问题在这里已经有了答案:RemovelinebreakinTabLayout(10个答案)关闭3年前。我想将制表rune本(最多8个字符)放在一行中我为TabLayout元素添加了自定义样式@style/MyCustomTabTextAppearance1true还是不行。我也试过了

android - Logcat 说 - 应用程序可能在其主线程上做了太多工作,错误消息说 - StringtoReal.invalidReal(string.boolean)line :63

按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visitthehelpcenter指导。关闭10年前。每当我在模拟器中运行我的应用程序时,Logcat说-应用程序可能在其主线程上做了太多工作并且错误消息说-StringtoReal.invalidReal(string.boolean)line:63在这里,我尝试添加3个TextView的值,并在另一个TextView中使用复选框(es)上的勾号显示它们的总数10-1217:23:21.074:W/Act

android - react native : ReferenceError: Can't find variable: require (line 1 in the generated bundle)

我使用以下指南在ReactNative中创建了一个示例应用Reactnativeandroid但是当我运行react-nativerun-android时。我收到以下异常。11-2516:10:35.3261796-1897/com.awesomeE/ReactNative:GotJSException:ReferenceError:Can'tfindvariable:require11-2516:10:35.3271796-1897/com.awesomeE/AndroidRuntime:FATALEXCEPTION:mqt_jsProcess:com.awesome,PID:179

java - 我在 Android Developers 上学习 "first app"类(class),但应用无法运行

http://developer.android.com/training/basics/firstapp/running-app.html这就是我所在的页面。到目前为止,一切都非常简单,因为除了将应用命名为“我的第一个应用”之外,我没有做任何更改。但是,当我单击“运行”或什至尝试单击“运行方式”时,Eclipse告诉我项目中存在错误,尽管红色X仅出现在项目名称上,在其他任何地方都找不到。一般我做Java编程的时候,很容易找到错误的代码,但是我这里找不到。此外,我不明白为什么会出现错误,因为这里的代码似乎是一个模板“HelloWorld!”应用程序,我一次都没有改变。我曾多次尝试重新开

java - 如何使用着色器为使用 GL_LINES 和 OpenGL ES 2.0 绘制的线条着色

我有一个使用OpenGLES2.0的Android应用程序。我需要从一个数组中绘制10条线,每条线都由起点和终点描述。所以有10行=20点=60个浮点值。所有点都没有连接,因此数组中的每一对点都与其他点无关,因此我使用GL_LINES进行绘制。我通过将值放入浮点缓冲区并像这样调用一些辅助代码来绘制它们:publicvoiddrawLines(FloatBuffervertexBuffer,floatlineWidth,intnumPoints,floatcolour[]){GLES20.glLineWidth(lineWidth);drawShape(vertexBuffer,GLES

安卓应用程序崩溃 : Why there is (Unknown Source) instead of line number

我构建并签名发布的应用程序偶尔会在我的机器上崩溃,在logcat中我打开堆栈跟踪以查找空指针异常。但我无法找到确切的行号?因为它说(未知来源)例如有些行看起来像这样Causedby:java.lang.NullPointerExceptionatme.com.myapplication.a.i.d(UnknownSource)atme.com.myapplication.MainActivity.onResume(UnknownSource)atandroid.app.Instrumentation.callActivityOnResume(Instrumentation.java:1

android - 错误膨胀类 ImageView - android.view.InflateException : Binary XML file line #10: Error inflating class ImageView

我正在设计一个应用程序,它有一个用于列表项的xml文件(list_item.xml),和listView的适配器(NewsAdapter.java)。我的应用程序在运行时遇到此错误:09-2220:26:29.59510387-10387/com.example.rh.newsappE/AndroidRuntime:FATALEXCEPTION:mainProcess:com.example.rh.newsapp,PID:10387android.view.InflateException:BinaryXMLfileline#10:BinaryXMLfileline#10:Errori