执行react-native运行android时出现问题

时间:2020-01-28 06:18:14

标签: react-native

在将react-native应用程序升级到androidx时,我使用以下代码创建了react-native.config.js文件:

module.exports = { 
  project: { 
    ios: {}, 
    android: {}, 
  }, 
  assets: ['./path-to-assets'], 
  commands: require('./path-to-commands.js'), 
}; 

module.exports = { 
  dependency: { 
    platforms: { 
      ios: {}, 
      android: {}, 
    }, 
    assets: ['./path-to-assets'], 
    hooks: { 
      prelink: './path-to-a-prelink-hook', 
    }, 
  }, 
}; 

module.exports = { 
  platforms: { 
    windows: require('./local-cli/platform.js').windows, 
  }, 
}; 

现在react-native run-android命令不起作用

0 个答案:

没有答案