我開發了一個項目,原生反應0.43.3android.widget.imageview不能轉換爲android.view.viewgroup(僅限搭載Android,IOS是OK)
我犯了一個錯誤發展,只有測試所有項目在iOS中。 (工作正常那裏)
的問題是,當我試圖生成APK上傳到Play商店中,並在設備的測試,我發現了錯誤:
android.widget.imageview不能轉換爲android.view .viewgroup
我的主要問題是關於如何顯示錯誤。在死亡的紅色屏幕上,我不知道如何找到線路和組件在原生反應中發生錯誤。我想也許我不能意識到,因爲JavaScript代碼已經編譯。
無論如何,我不知道如何解決這個問題。
我想也許是因爲我用紡紗內部的圖像(顯示圖像被加載),是這樣的:
<View style={[styles.resourceActions]}>
<Image
style={{width: imgWidth, height: imgHeight}}
source={{uri: this.props.imageUrl}}
onLoad = {() => this.setState({ loading: false })}
>
<ActivityIndicator
animating={this.state.loading}
style={[styles.spinner, styles.centering, {marginTop: this.state.loadingMarginTop}]}
size="large"
/>
</Image>
</View>
但我不知道,因爲我使用的ImageView(和fastimage成分)大量的配件和意見
我的依賴關係:
"@remobile/react-native-refresh-infinite-listview": "^1.0.6",
"react": "16.0.0-alpha.6",
"react-native": "0.43.3",
"react-native-camera": "git+https://github.com/lwansbrough/react-native-camera.git",
"react-native-device-info": "^0.10.2",
"react-native-fast-image": "0.0.9",
"react-native-google-analytics-bridge": "^5.0.1",
"react-native-htmlview": "^0.9.0",
"react-native-loading-spinner-overlay": "^0.4.4",
"react-native-material-design": "^0.3.7",
"react-native-modalbox": "^1.3.9",
"react-native-photo-view": "^1.2.0",
"react-native-qrcode-scanner": "0.0.11",
"react-native-qrcode-svg": "^5.0.0",
"react-native-radio-buttons": "^0.14.0",
"react-native-router-flux": "3.38.0",
"react-native-share": "^1.0.20",
"react-native-side-menu": "^0.20.1",
"react-native-svg": "^5.1.7",
"react-native-vector-icons": "^4.0.1"
感謝任何方位在我的問題
什麼「投」在這種情況下意味着什麼?是我在做' '?或當我做' '?我應該如何解決這個問題?對不起,在同一句話中有這麼多問題,但是因爲我想了解所有人認爲我不知道,非常感謝 –