草庐IT

the-button-element

全部标签

android - java.io.IOException : An existing connection was forcibly closed by the remote host Error while Installing APK 异常

我正在尝试在我的设备上安装我的项目,但出现以下错误:enterimagedescriptionhere这是错误:java.io.IOException:现有连接被远程主机强行关闭安装APK时出错请帮我解决这个问题,还有谁能告诉我关于java文件中的R 最佳答案 run->cmd->your_android_sdk_path->platform-tools>Thenwritethebelowcommands.adbkill-server-Tokilltheserverforcefullyadbstart-server-Tostartt

android - 如何升级Android Studio 2.3构建工具25修复 "The SDK Build Tools revision (21.1.2) is too low for project Minimum required is 25.0.0"

这个问题在这里已经有了答案:Error:TheSDKBuildToolsrevision(23.0.3)istoolowforproject':app'.Minimumrequiredis25.0.0(6个答案)关闭5年前。要升级到BuildTools25.0.2,我应该设置哪些配置变量和值?遵循AndroidStudio消息并不能让我修复我的Gradle构建脚本,使Gradle满意。应用程序在AndroidStudio2.2中运行良好-重复构建和部署都很好。将AndroidStudio升级到2.3,现在出现错误TheSDKBuildToolsrevision(21.1.2)istoo

android - 数据绑定(bind)中的 msg :Cannot find the getter for attribute 'android:text' with value type java. lang.String?

我正在尝试在edittext中使用数据绑定(bind),早上它工作正常但突然出现错误:****/databindingerror****msg:Cannotfindthegetterforattribute'android:text'withvaluetypejava.lang.Stringonandroid.widget.EditText.file:/home/itstym/ApkProjects/Reminder/app/src/main/res/layout/activity_main.xmlloc:20:4-34:40****\databindingerror****第20:4

javascript - react native : Android is not showing all images (even though they are the same)

我在我的应用中使用了8张图片(本地存储)3种尺寸的背景图片(@1~700kb,@2~2,9mb,@3~6,5mb)5张不同的图片,每张约100kb我将图像随机放置在一些可以相互滑动的卡片上(usingreact-native-snap-carousel。您可以向下滚动并翻转卡片。我在某些Android设备上发现了一些问题,其中并非所有图像都已加载。这是我尝试过的:android:largeHeap="true"-inthemanifestRunningreact-native-assetsreact-nativebundle...这是我的代码:Person.jsconstPersons

android - Expo with Android Studio 模拟器错误 : "Error running adb: This computer is not authorized to debug the device"

我正在尝试将AndroidStudio模拟器连接到我的expo应用程序,但我收到此错误消息:Couldn'tstartprojectonAndroid:Errorrunningadb:Thiscomputerisnotauthorizedtodebugthedevice.PleasefollowtheinstructionsheretoenableUSBdebugging:https://developer.android.com/studio/run/device.html#developer-device-options.IfyouareusingGenymotiongotoSet

机器人 : detect the reinstall of an app from the app code

有没有办法在重新安装应用程序代码时进行检测。我看到可以通过在广播接收器中监听PACKAGE_REPLACED事件来检测来自市场的应用程序更新。但是如果应用程序是从编辑器(eclipse)重新安装的,这些事件不会传递给应用程序。我的要求是禁用一个组件(启动器Activity)。如果未启用,应用安装将失败。所以每次重新安装之前我都想启用这个组件。我说的是在市场发布之前重新安装。在开发过程中,每次我重新安装应用程序以测试一些修改时,我都想从我的应用程序中检测到这一点并启用该组件。 最佳答案 我从示例中看到,当从eclipse重新安装应用程

android - facebook auth dialog return The page you requested was not found 而不是重定向回我的 Activity ?

当我尝试登录我的应用程序时,它在过去运行良好,我可以登录,然后我在身份验证对话框中看到Thepageyourequestedisnotfound而不是重定向回我的Activity。我知道这是Facebook的问题。 最佳答案 我上个月遇到这个问题大约20个小时,然后就解决了。要查看是否是Facebook的问题,请转到developers.facebook.com上的应用仪表板并尝试编辑设置。如果您在那里遇到错误,则必须等到问题得到解决。Facebook通常在周二/周三推送更新,所以可能会很快解决。

java - 安卓SDK : How do you set the screen brightness

我环顾四周,只能找到可以设置该Activity亮度的代码。我正在尝试更改实际的电话设置。我试过的代码是:publicclassAutoPowerManagerActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);try{adjustBright();}catch(Setting

Android 13 安装应用报错:The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

Android12及以下能运行的程序,现在在Android13系统上面运行,结果安装的时候提示:Theapplicationcouldnotbeinstalled:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED。解决方案:在AndroidManifest.xml需要添加android:exported,android:exported是Android13才要求的,于是在application节点下面的activity节点和receiver节点中都添加一个android:exported="true",再重新编译运行就可以了。

java - ListView : How to remain highlighted/selected after press back button?

当我们按下后退按钮时,如何让ListView保持高亮?可能吗?我经历过这个link但没有回复。我设法设置了背景、图像和文本,以便在用户按下列表时进行更改。我的一个xml:notification_row.xml 最佳答案 在你有listview的哪个Activity中放置这个:将其创建到全局变量:BundlesavedInstanceState;@OverrideprotectedvoidonRestart(){//TODOAuto-generatedmethodstubonCreate(savedInstanceState);su