草庐IT

the_struct

全部标签

android - 错误 : The file name must end with . xml 或 .png

即使我没有选择photothumb.db作为可绘制对象,我还是收到一条错误消息,提示photothumb.db应以.xml或.png结尾我的profilesmaller图片是png类型下面是我的代码下面是我的Gradle控制台消息FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:mergeDebugResources'.>C:\Users\CharleneMarie\AndroidStudioProjects\Guest\app\src\main\res\drawable\phot

java - "This Activity already has an action bar supplied by the window decor..."错误

所以我试图创建一个使用自定义工具栏(带有选项卡)的Activity,但出现此错误此Activity已经有一个由窗口装饰提供的操作栏。不要在主题中请求Window.FEATURE_SUPPORT_ACTION_BAR并将windowActionBar设置为false以使用工具栏。这是我的Activity课:importandroid.support.design.widget.AppBarLayout;importandroid.support.v7.app.ActionBar;importandroid.support.v7.app.AppCompatActivity;importan

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