gpt4 book ai didi

android - 如何在 Eclipse 中配置 ORMLite 表配置文件?

转载 作者:行者123 更新时间:2023-11-29 16:03:51 25 4
gpt4 key购买 nike

文档 ( http://ormlite.com/docs/table-config ) 说:

You will need to run this utility locally on your development box (not in an Android device), whenever you make a change to one of your data classes. This means that right now, this must be done by hand to keep the configuration file in sync with your database classes. To run the utility you will need to use the local Java runtime environment (JRE). Under eclipse, edit the "Run Configuration" for the utility, select the JRE tab, and select an alternative JRE (1.5 or 1.6). Your project’s JRE should be undefined since it is an Android application. You’ll also need to remove the Android bootstrap entry from the Classpath tab.

但我不清楚。不需要在 Android 中配置 JRE 选项卡?如何从类路径选项卡中删除 Android Bootstrap 条目?

最佳答案

已解决:

  1. 转到运行->运行配置->Java 应用程序->鼠标右键-> em>新。
  2. 名称中为您的配置键入一个名称。
  3. 项目浏览中选择 Android 项目并点击确定
  4. Main Class 中浏览到 DatabaseConfigUtil 类*(它扩展了 OrmLiteConfigUtil)* 选择它并单击OK.
  5. 单击JRE 选项卡并选择 1.5 或 1.6 JRE。
  6. Classpath 选项卡,选择 Bootstrap Entries (在我的例子中是 Android 4.4) 然后点击 Remove
  7. 点击应用

关于android - 如何在 Eclipse 中配置 ORMLite 表配置文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21365787/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com