Status Update
Comments
fl...@google.com <fl...@google.com> #2
a concerning line is:
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
what is the CPU in your computer?
The new emulator system requirements are posted here:
http://tools.android.com/tech-docs/emulator
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
what is the CPU in your computer?
The new emulator system requirements are posted here:
ch...@gmail.com <ch...@gmail.com> #3
The processor is an AMD Phenom II x6 1075T, and it has AMD-V, as required by the new Android emulator in Linux (please see this link for more info on this CPU : http://www.cpu-world.com/CPUs/K10/AMD-Phenom%20II%20X6%201075T%20-%20HDT75TFBK6DGR.html )
It does not have SSSE3, but I don't see it as a requirement in the Android emulator specs.
It does not have SSSE3, but I don't see it as a requirement in the Android emulator specs.
yb...@google.com <yb...@google.com> #4
[Comment deleted]
Description
Version used: 1.0.0
Environment: Android Studio - 3.0; Gradle Plugin - 3.0.0, wrapper version - 4.2.1; Kotlin version - 1.1.60.
Model example:
@Entity
data class Statistic(
@PrimaryKey
@ColumnInfo(name = "user_id")
val userId: Long,
@ColumnInfo(name = "used_days")
var usedDays: Int,
@ColumnInfo(name = "calories_burned")
var caloriesBurned: Int,
@ColumnInfo(name = "finished_workouts")
var finishedWorkouts: Int,
@ColumnInfo(name = "elapsed_time")
var elapsedTime: String = "00:00:00"
)
A piece of the json schema, that has been generated:
{
"tableName": "Statistic",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`user_id` INTEGER NOT NULL, `used_days` INTEGER NOT NULL, `calories_burned` INTEGER NOT NULL, `finished_workouts` INTEGER NOT NULL, `elapsed_time` TEXT NOT NULL, PRIMARY KEY(`user_id`))",
"fields": [
{
"fieldPath": "userId",
"columnName": "user_id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "usedDays",
"columnName": "used_days",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "caloriesBurned",
"columnName": "calories_burned",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "finishedWorkouts",
"columnName": "finished_workouts",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "elapsedTime",
"columnName": "elapsed_time",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"user_id"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
}
I assume that createSql should contain `elapsed_time` TEXT NOT NULL DEFAULT `00:00:00`. Are my assumptions correct? If not, could you provide an example how to set a default value to a field?