每次我运行我的反应原生项目时都会遇到99%的问题.我试图运行./Gradlew清理并杀死adb但没有任何作用.我已经通过usb,genymotion和android工作室模拟器使用了我的设备,它总是一样的......
在设备上构建和安装应用程序(cd android && gradlew.bat install Debug)...增量java编译是一个孵化功能.:app:preBuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest:app:preReleaseBuild UP-TO-DATE:react-native-maps:preBuild UP-TO-DATE:react-native-maps :preReleaseBuild UP-TO-DATE:react-native-maps:checkReleaseManifest:react-native-maps:preDebugAndroidTestBuild UP-TO-DATE:react-native-maps:preDebugBuild UP-TO-DATE:react-native-maps:preDebugUnitTestBuild UP -TO-DATE:react-native-maps:preReleaseUnitTestBuild UP-TO-DATE:react-native-maps:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE:react-native-maps:prepareComAndroidSupportSupportV42400Library UP-TO-DATE:react-native-maps: prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoDrawee130Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoFbcore130Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoFresco130Library UP-TO-DATE:react-native-地图:prepareComFacebookFrescoImagepipeline130Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoImagepipelineBase130Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoImagepipelineOkhttp3130Library UP-TO-DATE:react-native-maps:prepareComFacebookReactReactNative0493Library UP-TO-DATE:react-native-maps:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE:react-native-地图:prepareComGoogleAndroidGmsPlayServicesBase1024Library UP-TO-DATE:react-native-maps:prepareComGoogleAndroidGmsPlayServicesBasement1024Library UP-TO-DATE:react-native-maps:prepareComGoogleAndroidGmsPlayServicesMaps1024Library UP-TO-DATE:react-native-maps:prepareComGoogleAndroidGmsPlayServicesTasks1024Library UP-TO-DATE:react- native-maps:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE:react-native-maps:prepareReleaseDependencies:react-native-maps:compileReleaseAidl UP-TO-DATE:react-native-maps:compileReleaseNdk UP-TO-DATE:react-native-maps :compileLint UP-TO-DATE:react-native-maps:copyReleaseLint UP-TO-DATE:react-native-maps:compileReleaseRenderscript UP-TO-DATE:react-native-maps:generateReleaseBuildConfig UP-TO-DATE:react-native-maps:generateReleaseResValues UP-TO-DATE:react-native-maps:generateReleaseResources UP-TO-DATE:react-native-maps:mergeReleaseResources UP-TO-日期:react-native-maps:processReleaseManifest UP-TO-DATE:react-native-maps:processReleaseResources UP-TO-DATE:react-native-maps:generateReleaseSources UP-TO-DATE:react-native-maps:incrementalReleaseJavaCompilationSafeguard UP- TO-DATE:react-native-maps:compileReleaseJavaWithJavac UP-TO-DATE:react-native-maps:extractReleaseAnnotations UP-TO-DATE:react-native-maps:mergeReleaseShaders UP-TO-DATE:react-native-maps:compileReleaseShaders UP-TO-DATE:react-native-maps:generateReleaseAssets UP-TO-DATE:react-native-maps:mergeReleaseAssets UP-TO-DATE:react-native-maps:mergeReleaseProguardFiles UP-TO-DATE:react-native-maps :packageReleaseRenderscript UP-TO-DATE:react-native-maps:packageReleaseResources UP-TO-DATE:react-native-maps:processReleaseJavaRes UP-TO-DATE:react-native -maps:transformResourcesWithMergeJavaResForRelease UP-TO-DATE:react-native-maps:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE:react-native-maps:mergeReleaseJniLibFolders UP-TO-DATE:react-native-maps:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE:react -native-地图:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE:反应天然-地图:bundleRelease UP-TO-DATE:应用程序:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE:应用程序:prepareComAndroidSupportSupportV42400Library UP-TO-DATE:应用程序:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-日期:应用:prepareComFacebookFrescoDrawee130Library UP-TO-DATE:应用:prepareComFacebookFrescoFbcore130Library UP-TO-DATE:应用:prepareComFacebookFrescoFresco130Library UP-TO-DATE:应用:prepareComFacebookFrescoImagepipeline130Library UP-TO-DATE:应用:prepareComFacebookFrescoImagepipelineBase130Library UP-TO-DATE:应用:prepareComFacebookFrescoImagepipelineOkhttp3130Library最新消息:app:prepareComFaceb ookReactReactNative0493Library UP-TO-DATE:应用:prepareComFacebookSoloaderSoloader010Library …
我有这个代码
class Home extends Component {
constructor(props) {
super(props);
this.state = {
dataSource: []
}
this._handleRenderItem = this._handleRenderItem.bind(this);
this._keyExtractor = this._keyExtractor.bind(this);
}
componentDidMount() {
let success = (response) => {
this.setState({ dataSource: response.data });
};
let error = (err) => {
console.log(err.response);
};
listarProdutos(success, error);
}
_keyExtractor = (item, index) => item._id;
_handleRenderItem = (produto) => {
return (
<ItemAtualizado item={produto.item} />
);
}
render() {
return (
<Container style={styles.container}>
<Content>
<Card>
<CardItem style={{ flexDirection: 'column' }}>
<Text style={{ color: …Run Code Online (Sandbox Code Playgroud)