这是我的代码:
Fatal Exception: io.realm.exceptions.RealmError
Unrecoverable error. msync() failed: I/O error in /home/cc/repo/realm/release/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 260
尝试执行realm.executeTransaction时崩溃。给我下一个错误:
io.realm.internal.SharedRealm.nativeCommitTransaction (SharedRealm.java)
io.realm.internal.SharedRealm.commitTransaction (SharedRealm.java:263)
io.realm.BaseRealm.commitTransaction (BaseRealm.java:359)
io.realm.Realm.commitTransaction (Realm.java:129)
io.realm.Realm.executeTransaction (Realm.java:1445)
nl.hgrams.passenger.model.trip.TripStep.addLocation (TripStep.java:418)
下面:
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
classpath "io.realm:realm-gradle-plugin:3.2.0"
classpath 'com.google.gms:google-services:3.1.0' // google-services plugin
}
我该怎么做才能解决这个问题?
领域版本:
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// BEFORE EVERYTHING ELSE
View view = inflater.inflate(R.layout.fragment_container, container, false);
ButterKnife.bind(this, view);
...
// RETURN IT AT THE END OF METHOD
return view;
}