将存储库从GitHub克隆到android studio时出现此错误。
class TxJTable implements ActionListener {
public void actionPerformed(ActionEvent ave) {
TxTable tt = new TxTable(transactions);
centerPanel = new JScrollPane(tt.getTable());
add(centerPanel, BorderLayout.CENTER);
validate();
repaint();
}
}
class OdTable implements ActionListener {
public void actionPerformed(ActionEvent ave) {
OrderPanel op = new OrderPanel(tokenMap);
centerPanel = new JScrollPane(op);
add(centerPanel, BorderLayout.CENTER);
validate();
repaint();
}
}
当我尝试运行该应用程序时,出现此错误
Unsupported Modules Detected: Compilation is not supported for following modules: GitHubTestV3. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
有什么解决办法吗?
我已经尝试按照其他关于堆栈溢出的答案的建议使缓存无效并重新启动,但在我的情况下不起作用。
答案 0 :(得分:0)
“ 使用Gradle文件同步项目”为我解决了这个问题。