我们有一个React原生应用程序,在升级到Android Studio 3.6.1和Gradle plugin 3.6.1后,我们看到了这个编译错误:
Type androidx.appcompat.resources.R$dimen is defined multiple times: /Users/andrew/Software/project/android/app/build/intermediates/project_dex_archive/productionRelease/out/androidx/appcompat/resources/R$dimen.dex, /Users/andrew/Software/project/android/app/build/intermediates/project_dex_archive/productionRelease/out/15bdf8225afad69777cd7f9bd328ab094900c8289014e0107b56c5c62099dfea_3.jar:classes.dex
以下是我们的依赖关系:
"dependencies": {
"@dblackker/cameraroll": "^1.3.4",
"@react-native-community/async-storage": "^1.7.1",
"@react-native-community/geolocation": "^2.0.2",
"@react-native-community/netinfo": "^4.4.0",
"@react-native-community/push-notification-ios": "^1.0.6",
"@react-native-firebase/analytics": "^6.2.0",
"@react-native-firebase/app": "^6.2.0",
"@react-native-firebase/crashlytics": "^6.2.0",
"@react-native-firebase/perf": "^6.2.0",
"appcenter": "^2.6.1",
"appcenter-analytics": "^2.6.1",
"appcenter-crashes": "^2.6.1",
"axios": "^0.18.0",
"clone": "^2.1.2",
"immutability-helper": "^2.8.1",
"lodash": "^4.17.14",
"memoize-one": "^5.1.1",
"moment": "^2.22.2",
"prop-types": "^15.7.2",
"react": "16.9.0",
"react-custom-validation": "^0.5.7",
"react-native": "0.61.5",
"react-native-add-calendar-event": "^3.0.0",
"react-native-app-intro-slider": "^3.0.0",
"react-native-appearance": "^0.3.1",
"react-native-camera": "^3.8.0",
"react-native-contacts": "^5.0.6",
"react-native-device-info": "^4.0.1",
"react-native-gesture-handler": "^1.4.1",
"react-native-heic-converter": "^1.3.0",
"react-native-image-crop-picker": "^0.26.1",
"react-native-image-resizer": "^1.0.1",
"react-native-inappbrowser-reborn": "^3.1.0",
"react-native-iphone-x-helper": "^1.2.1",
"react-native-keyboard-aware-scroll-view": "^0.7.4",
"react-native-linear-gradient": "^2.5.6",
"react-native-maps": "0.26.1",
"react-native-modal": "^7.0.2",
"react-native-modal-datetime-picker": "^7.6.1",
"react-native-parsed-text": "^0.0.21",
"react-native-permissions": "^2.0.9",
"react-native-push-notification": "^3.1.9",
"react-native-reanimated": "^1.3.0",
"react-native-section-list-get-item-layout": "^2.2.3",
"react-native-shadow": "^1.2.2",
"react-native-share": "^2.0.0",
"react-native-svg": "^9.12.0",
"react-native-svg-uri": "^1.2.3",
"react-native-tab-view": "^2.3.0",
"react-native-version-number": "^0.3.6",
"react-navigation": "3.12.0",
"react-navigation-tabs": "^2.1.2",
"react-redux": "^5.0.7",
"redux": "^4.0.4",
"redux-thunk": "^2.3.0",
"rn-fetch-blob": "^0.11.2",
"validator": "^10.8.0"
}
谁能帮忙找出问题是什么,我们将来如何调试这种类型的问题?谢谢大家!
我删除了< code>android/app/build文件夹,因为我的副本就在那里。
在Android Studio中将gradle版本从3.5.2更新到3.6.3后,我遇到了同样的问题。
我有多个构建变体。
我通过首先从项目中删除. gradle文件夹并执行清理项目和重建项目来解决问题。
如果您有多个构建变体,那么当您从一个构建变体变更到另一个构建变体时,您可能必须为每个构建变体做同样事情。
得到了同样的问题,只是清理项目并重新构建。
问题内容: SELECT TOP(20) * FROM (SELECT * FROM [3D_Benchmarks] JOIN [3D_Slugs] ON [3D_Benchmarks].Id = [3D_Slugs].BenchmarkId) AS tb ORDER BY tb.FPS DESC; 我收到此错误: 为“ tb”多次指定了“ Id”列。 问题答案: 代替使用或。
我试图为BillingClient v.2.2.0和Kotlin协同程序编写一个包装: 正如您所见,当我试图查询购买或购买时,我确保客户已经准备好。但在生产中存在许多错误: 我试图了解问题的原因,得到了if将被多次调用。可能存在异常。我一直想知道这是怎么可能的,因为我每次调用都会创建新的侦听器?我无法在emulator或测试设备上重现此问题。有人能解释一下这里发生了什么,以及如何解决吗?
我正在尝试在像这样: 然后在我的它呈现: 我正在将我的fetch记录到控制台中,它被调用了三次。流程是我在登录页面上(加载时挂载一次),我登录,它将我重定向到自己呈现的主页。此时,我在控制台中看到:
我有一个代码,在那里我处理多个线程。一个线程等待它所依赖的其他一些线程的执行。 线程的运行代码如下所示 很少有其他线程等待这个线程在相同的方法中完成执行,如图所示,通过调用join()来执行run()。 假设这个线程依赖于另外三个线程,它正在等待它们在thread.join()中完成执行。即nameList大小为3,但此线程也执行了3次操作。它在for循环的外部。 我用另一种方法启动这个线程,比如
a.cs文件: 公共活动MyEventHandler Ontagload; 私有void btnLoad_Click(object sender,EventArgs e){if(OnTagLoad!=null){OnTagLoad(sender,e,runTimeData);}} 每当我单击Load按钮时,事件应该只触发一次。我们如何在windows窗体中实现这一点。 感谢你的帮助。
问题内容: 多次呼叫的行为是什么? 例如,我希望在单独的.js文件中定义路由和指令。 这样安全吗? 例如: 另外,多次定义依赖项有什么影响?这是添加剂,还是双赢? 例如: 问题答案: angular.module(name [,require],configFn); … require(可选)– {Array。=} –如果指定,则创建新模块。如果未指定,则将检索模块以进行进一步配置。- angul