【发布时间】:2014-05-11 16:47:31
【问题描述】:
我为一个干净的 Android 应用程序创建了Google App Engine,如下所示:
Google App Engine Cloud Endpoints Pr@blem Marker - > Generate App Engine Error on clean Android Project
我添加了一个实体:
package com.example.smbp1;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.jdo.annotations.PersistenceCapable;
@Entity
public class Product {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
int id;
String name;
double price;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
}
并为其生成端点。
然后当我点击一个后端引擎应用程序right-click -> Google-> Generate Cloud Endpoint Library
我明白了:
但在 Eclipse 中没有可见的错误:
【问题讨论】:
标签: android eclipse google-app-engine endpoint