cost 149 ms
如何在 Android Studio 中抑制“无法解析相应的 JNI 函数”?

[英]How to suppress "Cannot resolve corresponding JNI function" in Android Studio?

我正在 Android Studio 中创建一个本机方法,该方法在加载库时使用 JNI_OnLoad 中的 RegisterNatives 注册。 问题是我想加密方法名称和签名字符串,但如果我这样做,Android Studio 不会让我编译应用程序,因为这个错误:“无法解析相应的 JNI fun ...

React Native Android 构建失败,出现 react-native-community-cli 错误

[英]React Native Android Build Failed with react-native-community-cli error

当我从 Android Studio 或 cli 运行应用程序时,android 构建失败并出现以下错误, 我试图删除 package-lock.json 文件和节点模块并重新安装它们,但它不起作用,我还尝试使用清理 android 构建./gradlew clean 但这也因同样的错误而失败 ...

Android MatrixCursor 不添加新行

[英]Android MatrixCursor not adding new row

我需要模拟 Cursor 以进行某些内容提供程序单元测试,但addRow方法由于某些奇怪的原因无法正常工作。 添加一行后,计数始终保持为 0。 我错过了什么?@Test fun addCursorTest() { val columns: Array<String> = arra ...

NullPointerException:尝试在 null object 引用上调用虚拟方法“android.view.View android.view.View.findViewById(int)”

[英]NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference

我在 Java 尝试在 android Studio 中运行我的应用程序时收到此 NullPointerException 错误。 下面是我的 JavaFile 这是我的活动主页布局文件: 在这里,分配了 id tvusername 我看过很多类似的帖子,但我试图向他们学习,但它并没有引起我的共鸣 ...

Android的SurfaceFlinger如何自定义

[英]How to customize SurfaceFlinger of Android

我想在真实的 Android 手机/平板电脑上验证我在 SurfaceFlinger 上的设计。 但是我没有任何设备的源代码。 我可以只使用 AOSP 的源代码构建libsurfaceflinger.so并将其推送到手机吗? 或者有人可以推荐一些具有高通 SoC 和源代码支持的商用 Android ...

在 React Native 应用程序中的自定义飞溅之前,假飞溅出现在 Android 中的问题

[英]Issue with Fake Splash Coming in Android before Custom Splash In React Native App

我在我的 React Native 应用程序中创建了自定义启动画面,它在所有 iOS 设备上运行良好,甚至在几个 Android 设备上运行良好。 因此,Android 设备中出现的问题是,当我首先通过单击应用程序图标启动应用程序时,它显示带有应用程序图标的黑屏作为假启动画面,然后显示自定义启动画面 ...

在 Android 中获取“无活动管理员”SecurityException 10 - 如何解决?

[英]Getting 'No active admin' SecurityException in Android 10 - how to resolve?

在测试期间,我在 Google Play 管理中心的预发布报告中遇到错误。 错误信息如下: 这个错误具体出现在Android 10(SDK 29)。 完整的错误摘要如下: 我需要帮助来解决这个特定错误。 任何帮助或指导将不胜感激。 ...

检查亚马逊设备上的家长控制是否处于活动状态

[英]Check if Parental control is active on Amazon device

赏金将在 6 天后到期。 此问题的答案有资格获得+50声望赏金。 SuperFrog想让更多人关注这个问题。 我试图找到一种方法来检查亚马逊设备上是否启用了家长控制。 我试过这段代码 但这不起作用,即使禁用家长控制,isActive 也始终为真。 有没有办法通过标准权限实现这一目标? ...

2023-06-01 15:39:47   1   14    android  
Flutter 的 EventChannel 不向 dart 端发送数据

[英]Flutter's EventChannel not sending data to dart side

赏金将在 6 天后到期。 此问题的答案有资格获得+100声望赏金。 BraveEvidence想让更多人关注这个问题。 我试图在 android 的共享表中显示我的应用程序,我能够成功地做到这一点,但我无法使用EventChannel从本机端向 dart 发送数据。 我已将我的 MainActi ...

如何在反向即 Plot 折线图。 使用 MPAndroidChart 库从 Android 从右到左方向开始?

[英]How to Plot Line Chart in reverse direction ie. starting from right to left direction in Android using MPAndroidChart library?

您好我正在使用这个库https://github.com/PhilJay/MPAndroidChart并尝试绘制从端点到起点的折线图,即从右到左的方向,我遵循库文档并尝试实现以下自定义 class 代码: 但是上面的代码完全从正确的方向开始停止 animation lineChart.animat ...

为什么我的 Unity 构建的 Android 应用程序在编辑器中运行时没有生成 CSV 文件?

[英]Why isn't my Unity-built Android app generating a CSV file when it works in the editor?

我正在尝试在 Unity 中为 android 设备构建一个应用程序。 在此,一些数据被获取,一些是用户输入的,并以Dictionary<string, string> chairDataStored = new Dictionary<string, string> 的格式 ...

EAS 构建失败,因为我没有 Android 目录

[英]EAS build failed because I don't have Android directory

我有反应本机项目,我用来在 Expo Go 上测试它。也就是说,我在这个项目中没有android或ios目录。 我需要吗? 我想在我的 android 设备上测试我的项目,所以我运行eas build --profile development --platform android 。 这是我的ea ...

在执行 api 请求时将布局显示为视图

[英]show layout as view while performing api request

我试图在执行 api 请求时显示其布局为 xml 的视图布局,并在请求完成后将其删除布局包含 TextView 和 animation,在布局显示后我需要将 TextView 设置为随机文本 这是我的布局,我需要在布局显示后通过其 ID 访问 textview ...

弹出片段时 CollapsingToolbarLayout 出现故障

[英]Glitch with CollapsingToolbarLayout when popping up a fragment

赏金将在 23 小时后到期。 此问题的答案有资格获得+100声望赏金。 P1x想让更多人关注这个问题。 我有一个带有 CollapsingToolbarLayout 的片段 A,其中包含滚动页面时折叠的视图。 在页面的末尾,一个按钮导航到另一个片段 B。 当我按回片段 B 时,片段 B 从导航堆 ...

Android 13 双方通话录音

[英]Android 13 Call recording both sides

赏金将在 23 小时后到期。 此问题的答案有资格获得+300声望赏金。 Andrei Ciuca想提请更多人关注这个问题。 从 Android 10,我必须使用辅助功能访问,您可以使用带有源语音识别的 MediaRecorder 录制通话。 问题是在某些设备上录音不是双向的——只有一种声音。 这 ...

我可以将“@ApplicationContext private val appContext: Context”用作将由 Android Studio 中的 Service() 调用的 class 的 DI 吗?

[英]Can I use “@ApplicationContext private val appContext: Context” as DI for a class that will be invoked by a Service() in Android Studio?

赏金将在 4 天后到期。 此问题的答案有资格获得+50声望赏金。 HelloCW正在寻找来自可靠来源的答案。 我在我的 Android Studio 项目中使用 Hilt 作为 DI。 ServiceTranslate是一个Service class,它的生命周期比应用本身更长。 Servi ...


 
粤ICP备18138465号  © 2020-2023 STACKOOM.COM