我使用的是expo 34托管工作流,对于某些额外的功能,我需要退出expo应用程序。当我退出JOIN
除外的expo应用程序时,一切运行正常。
我已遵循react-native-maps的每一步进行链接。当我运行CREATE VIEW reporting AS
SELECT
c.booking_id,
c.activity_name,
b.ref_no
FROM proof a
JOIN tbl_booking b ON a.booking_id = b.id
JOIN chart_entery c ON a.booking_id = c.booking_id AND b.id = c.booking_id
时构建成功完成(也没有向我显示android studio中的任何错误),但是我的应用要打开时崩溃了。如果我评论了本机代码(react-native-maps配置)应用程序运行正常。
这是我的代码。
android / settings.gradle
react-native-maps
android / app / build.gradle
yarn android
android / app / src / main / AndroidManifest.xml
include ':react-native-gesture-handler'
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
includeUnimodulesProjects()
MainApplication.java
dependencies {
implementation project(':react-native-screens')
implementation project(':react-native-reanimated')
implementation project(':react-native-gesture-handler')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'
addUnimodulesDependencies()
}
logcat 警告
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="my_api_key"/>
我曾尝试使用Expo 35的裸机,但也遇到了同样的问题。
任何人都可以帮助解决此问题。从2天开始卡住。