gpt4 book ai didi

android - java.lang.ClassNotFoundException : android. 网络.网络

转载 作者:行者123 更新时间:2023-11-30 00:56:52 27 4
gpt4 key购买 nike

这与 Payubiz payment gateway sdk 关系不大一体化。但是,主要问题与构建项目有关。

每当我们尝试在模拟器上运行应用程序时。我们得到以下失败:

  • What went wrong: Execution failed for task ':app:transformClassesWithInstantRunForAppDebug'. java.lang.ClassNotFoundException: android.net.Network

但是,应用程序在设备上运行时构建和运行平稳。我们已经就此问题联系了 Payu 团队。但因为它是一个 android 相关的问题,而不是支付网关。我觉得 SO 是更好的地方。

模拟器详细信息:

  • 名称:Nexus_4_API_19 CPU/ABI:Google API Intel Atom (x86)
  • 目标:google_apis [Google API](API 级别 19)
  • runtime.network.speed:满

解决方案:以下是 PayU 团队的回复。他们已经确认他们没有使用任何类(class),我也没有。但过了一段时间/可能是其他一些依赖/清理项目。它也适用于模拟器。

enter image description here

最佳答案

类(class)android.net.Network在API 21中添加。您需要使用具有相同或更高API级别的模拟器才能访问它。

关于android - java.lang.ClassNotFoundException : android. 网络.网络,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39995922/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com