How can I solve this problem. (error: Cannot find getter for field.)
I have a problem. I clone this github project. https://github.com/SimpleMobileTools/Simple-Calendar
Then I update Kotlin in Android Studio. When I run project, I take errors and I didn't solve them.
That are errors when I build it:
22:51:20: Executing task 'build'...
Executing tasks: [build]
:app:checkDebugClasspath UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mainApkListPersistenceDebug UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:kaptGenerateStubsDebugKotlin UP-TO-DATE
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:11: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:39: error: Cannot find getter for field.
private java.lang.String importId;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventType.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetition.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetitionException.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
:app:kaptDebugKotlin
w: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarprodatabasesEventsDatabase.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false.
public abstract class EventsDatabase extends androidx.room.RoomDatabase {
^
:app:kaptDebugKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUİLD FAILED in 4s
14 actionable tasks: 1 executed, 13 up-to-date
22:51:25: Task execution finished 'build'.
This is first errors' generated java class:
package com.simplemobiletools.calendar.pro.models;
import java.lang.System;
@androidx.room.Entity(tableName = "events", indices = {@androidx.room.Index(unique = true, value = {"id"})})
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000Xnu0002u0018u0002nu0002u0018u0002nu0000nu0002u0010tnu0000nu0002u0010bnu0002bu0002nu0002u0010u000enu0002b(nu0002u0010u000bnu0002bu001cnu0002u0010u0002nu0002bu0002nu0002u0018u0002nu0002bu0019nu0002u0010u0000nu0002bu0003nu0002u0018u0002nu0002bu0003nu0002u0010 nu0002bu0003nu0002u0018u0002nu0002bu0004bu0087bu0018u0000 z2u00020u0001:u0001zBu00b9u0001u0012bu0010u0002u001au0004u0018u00010u0003u0012bbu0002u0010u0004u001au00020u0005u0012bbu0002u0010u0006u001au00020u0005u0012bbu0002u0010u0007u001au00020bu0012bbu0002u0010tu001au00020bu0012bbu0002u0010nu001au00020bu0012bbu0002u0010u000bu001au00020u0005u0012bbu0002u0010fu001au00020u0005u0012bbu0002u0010ru001au00020u0005u0012bbu0002u0010u000eu001au00020u0005u0012bbu0002u0010u000fu001au00020u0005u0012bbu0002u0010u0010u001au00020u0005u0012bbu0002u0010u0011u001au00020bu0012bbu0002u0010u0012u001au00020u0005u0012bbu0002u0010u0013u001au00020u0003u0012bbu0002u0010u0014u001au00020u0003u0012bbu0002u0010u0015u001au00020u0003u0012bbu0002u0010u0016u001au00020bu00a2u0006u0002u0010u0017Ju000eu0010Mu001au00020N2u0006u0010Ou001au00020u0000Ju0018u0010Pu001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u0000Hu0002J u0010Su001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u00002u0006u0010Tu001au000201Hu0002Ju0010u0010Uu001au0004u0018u00010u0003Hu00c6u0003u00a2u0006u0002u0010*Jtu0010Vu001au00020u0005Hu00c6u0003Jtu0010Wu001au00020u0005Hu00c6u0003Jtu0010Xu001au00020u0005Hu00c6u0003Jtu0010Yu001au00020bHu00c6u0003Jtu0010Zu001au00020u0005Hu00c6u0003Jtu0010[u001au00020u0003Hu00c6u0003Jtu0010\u001au00020u0003Hu00c6u0003Jtu0010]u001au00020u0003Hu00c6u0003Jtu0010^u001au00020bHu00c6u0003Jtu0010_u001au00020u0005Hu00c6u0003Jtu0010`u001au00020u0005Hu00c6u0003Jtu0010au001au00020bHu00c6u0003Jtu0010bu001au00020bHu00c6u0003Jtu0010cu001au00020bHu00c6u0003Jtu0010du001au00020u0005Hu00c6u0003Jtu0010eu001au00020u0005Hu00c6u0003Jtu0010fu001au00020u0005Hu00c6u0003Ju00c4u0001u0010gu001au00020u00002nbu0002u0010u0002u001au0004u0018u00010u00032bbu0002u0010u0004u001au00020u00052bbu0002u0010u0006u001au00020u00052bbu0002u0010u0007u001au00020b2bbu0002u0010tu001au00020b2bbu0002u0010nu001au00020b2bbu0002u0010u000bu001au00020u00052bbu0002u0010fu001au00020u00052bbu0002u0010ru001au00020u00052bbu0002u0010u000eu001au00020u00052bbu0002u0010u000fu001au00020u00052bbu0002u0010u0010u001au00020u00052bbu0002u0010u0011u001au00020b2bbu0002u0010u0012u001au00020u00052bbu0002u0010u0013u001au00020u00032bbu0002u0010u0014u001au00020u00032bbu0002u0010u0015u001au00020u00032bbu0002u0010u0016u001au00020bHu00c6u0001u00a2u0006u0002u0010hJu0013u0010iu001au0002012bu0010ju001au0004u0018u00010kHu00d6u0003Ju0006u0010lu001au00020u0005Ju0006u0010mu001au00020u0003Ju0006u0010nu001au00020oJu0006u0010pu001au00020u0005Ju0006u0010qu001au000201Jfu0010ru001abu0012u0004u0012u00020u00050sJtu0010tu001au00020u0005Hu00d6u0001Ju0014u0010uu001au0002012fu0010vu001abu0012u0004u0012u00020u00050wJtu0010xu001au00020bHu00d6u0001Ju0006u0010yu001au00020NRu001au0010u0018u001au00020u0005Xu0086u000eu00a2u0006u000enu0000u001au0004bu0019u0010u001a"u0004bu001bu0010u001cRu001eu0010nu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bu001du0010u001e"u0004bu001fu0010 Ru001eu0010u0006u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b!u0010u001a"u0004b"u0010u001cRu001eu0010u0013u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b#u0010$"u0004b%u0010&Ru001eu0010u0012u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b'u0010u001a"u0004b(u0010u001cR"u0010u0002u001au0004u0018u00010u00038u0006@u0006Xu0087u000eu00a2u0006u0010nu0002u0010-u001au0004b)u0010*"u0004b+u0010,Ru001eu0010u0011u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b.u0010u001e"u0004b/u0010 R$u00100u001au0002012u0006u00100u001au0002018F@FXu0086u000eu00a2u0006fu001au0004b0u00102"u0004b3u00104Ru001eu0010u0015u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b5u0010$"u0004b6u0010&Ru001eu0010tu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b7u0010u001e"u0004b8u0010 Ru001eu0010u0014u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b9u0010$"u0004b:u0010&Ru001eu0010u000bu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b;u0010u001a"u0004b<u0010u001cRu001eu0010fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b=u0010u001a"u0004b>u0010u001cRu001eu0010ru001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b?u0010u001a"u0004b@u0010u001cRu001eu0010u000eu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bAu0010u001a"u0004bBu0010u001cRu001eu0010u0010u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bCu0010u001a"u0004bDu0010u001cRu001eu0010u000fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bEu0010u001a"u0004bFu0010u001cRu001eu0010u0016u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bGu0010u001e"u0004bHu0010 Ru001eu0010u0004u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bIu0010u001a"u0004bJu0010u001cRu001eu0010u0007u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bKu0010u001e"u0004bLu0010 u00a8u0006{"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event;", "Ljava/io/Serializable;", "id", "", "startTS", "", "endTS", "title", "", "location", "description", "reminder1Minutes", "reminder2Minutes", "reminder3Minutes", "repeatInterval", "repeatRule", "repeatLimit", "importId", "flags", "eventType", "parentId", "lastUpdated", "source", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)V", "color", "getColor", "()I", "setColor", "(I)V", "getDescription", "()Ljava/lang/String;", "setDescription", "(Ljava/lang/String;)V", "getEndTS", "setEndTS", "getEventType", "()J", "setEventType", "(J)V", "getFlags", "setFlags", "getId", "()Ljava/lang/Long;", "setId", "(Ljava/lang/Long;)V", "Ljava/lang/Long;", "getImportId", "setImportId", "isPastEvent", "", "()Z", "setPastEvent", "(Z)V", "getLastUpdated", "setLastUpdated", "getLocation", "setLocation", "getParentId", "setParentId", "getReminder1Minutes", "setReminder1Minutes", "getReminder2Minutes", "setReminder2Minutes", "getReminder3Minutes", "setReminder3Minutes", "getRepeatInterval", "setRepeatInterval", "getRepeatLimit", "setRepeatLimit", "getRepeatRule", "setRepeatRule", "getSource", "setSource", "getStartTS", "setStartTS", "getTitle", "setTitle", "addIntervalTime", "", "original", "addMonthsWithSameDay", "Lorg/joda/time/DateTime;", "currStart", "addXthDayInterval", "forceLastWeekday", "component1", "component10", "component11", "component12", "component13", "component14", "component15", "component16", "component17", "component18", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)Lcom/simplemobiletools/calendar/pro/models/Event;", "equals", "other", "", "getCalDAVCalendarId", "getCalDAVEventId", "getEventRepetition", "Lcom/simplemobiletools/calendar/pro/models/EventRepetition;", "getEventStartTS", "getIsAllDay", "getReminders", "", "hashCode", "isOnProperWeek", "startTimes", "Landroidx/collection/LongSparseArray;", "toString", "updateIsPastEvent", "Companion", "calendar_debug"})
public final class Event implements java.io.Serializable {
private int color;
@org.jetbrains.annotations.Nullable()
@androidx.room.PrimaryKey(autoGenerate = true)
private java.lang.Long id;
@androidx.room.ColumnInfo(name = "start_ts")
private int startTS;
@androidx.room.ColumnInfo(name = "end_ts")
private int endTS;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "title")
private java.lang.String title;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "location")
private java.lang.String location;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "description")
private java.lang.String description;
@androidx.room.ColumnInfo(name = "reminder_1_minutes")
private int reminder1Minutes;
@androidx.room.ColumnInfo(name = "reminder_2_minutes")
private int reminder2Minutes;
@androidx.room.ColumnInfo(name = "reminder_3_minutes")
private int reminder3Minutes;
@androidx.room.ColumnInfo(name = "repeat_interval")
private int repeatInterval;
@androidx.room.ColumnInfo(name = "repeat_rule")
private int repeatRule;
@androidx.room.ColumnInfo(name = "repeat_limit")
private int repeatLimit;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "import_id")
private java.lang.String importId;
@androidx.room.ColumnInfo(name = "flags")
private int flags;
@androidx.room.ColumnInfo(name = "event_type")
private long eventType;
@androidx.room.ColumnInfo(name = "parent_id")
private long parentId;
@androidx.room.ColumnInfo(name = "last_updated")
private long lastUpdated;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "source")
private java.lang.String source;
private static final long serialVersionUID = -32456795132345616L;
public static final com.simplemobiletools.calendar.pro.models.Event.Companion Companion = null;
public final void addIntervalTime(@org.jetbrains.annotations.NotNull()
com.simplemobiletools.calendar.pro.models.Event original) {
}
private final org.joda.time.DateTime addMonthsWithSameDay(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original) {
return null;
}
private final org.joda.time.DateTime addXthDayInterval(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original, boolean forceLastWeekday) {
return null;
}
public final boolean getIsAllDay() {
return false;
}
@org.jetbrains.annotations.NotNull()
public final java.util.List<java.lang.Integer> getReminders() {
return null;
}
public final int getEventStartTS() {
return 0;
}
public final long getCalDAVEventId() {
return 0L;
}
public final int getCalDAVCalendarId() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.EventRepetition getEventRepetition() {
return null;
}
public final boolean isOnProperWeek(@org.jetbrains.annotations.NotNull()
androidx.collection.LongSparseArray<java.lang.Integer> startTimes) {
return false;
}
public final void updateIsPastEvent() {
}
public final boolean isPastEvent() {
return false;
}
public final void setPastEvent(boolean isPastEvent) {
}
public final int getColor() {
return 0;
}
public final void setColor(int p0) {
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long getId() {
return null;
}
public final void setId(@org.jetbrains.annotations.Nullable()
java.lang.Long p0) {
}
public final int getStartTS() {
return 0;
}
public final void setStartTS(int p0) {
}
public final int getEndTS() {
return 0;
}
public final void setEndTS(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getTitle() {
return null;
}
public final void setTitle(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getLocation() {
return null;
}
public final void setLocation(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getDescription() {
return null;
}
public final void setDescription(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getReminder1Minutes() {
return 0;
}
public final void setReminder1Minutes(int p0) {
}
public final int getReminder2Minutes() {
return 0;
}
public final void setReminder2Minutes(int p0) {
}
public final int getReminder3Minutes() {
return 0;
}
public final void setReminder3Minutes(int p0) {
}
public final int getRepeatInterval() {
return 0;
}
public final void setRepeatInterval(int p0) {
}
public final int getRepeatRule() {
return 0;
}
public final void setRepeatRule(int p0) {
}
public final int getRepeatLimit() {
return 0;
}
public final void setRepeatLimit(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getImportId() {
return null;
}
public final void setImportId(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getFlags() {
return 0;
}
public final void setFlags(int p0) {
}
public final long getEventType() {
return 0L;
}
public final void setEventType(long p0) {
}
public final long getParentId() {
return 0L;
}
public final void setParentId(long p0) {
}
public final long getLastUpdated() {
return 0L;
}
public final void setLastUpdated(long p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getSource() {
return null;
}
public final void setSource(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public Event(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
super();
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long component1() {
return null;
}
public final int component2() {
return 0;
}
public final int component3() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component4() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component5() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component6() {
return null;
}
public final int component7() {
return 0;
}
public final int component8() {
return 0;
}
public final int component9() {
return 0;
}
public final int component10() {
return 0;
}
public final int component11() {
return 0;
}
public final int component12() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component13() {
return null;
}
public final int component14() {
return 0;
}
public final long component15() {
return 0L;
}
public final long component16() {
return 0L;
}
public final long component17() {
return 0L;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component18() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.Event copy(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
return null;
}
@org.jetbrains.annotations.NotNull()
@java.lang.Override()
public java.lang.String toString() {
return null;
}
@java.lang.Override()
public int hashCode() {
return 0;
}
@java.lang.Override()
public boolean equals(@org.jetbrains.annotations.Nullable()
java.lang.Object p0) {
return false;
}
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000u0012nu0002u0018u0002nu0002u0010u0000nu0002bu0002nu0002u0010tnu0000bu0086u0003u0018u00002u00020u0001Bu0007bu0002u00a2u0006u0002u0010u0002Ru000eu0010u0003u001au00020u0004Xu0082Tu00a2u0006u0002nu0000u00a8u0006u0005"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event$Companion;", "", "()V", "serialVersionUID", "", "calendar_debug"})
public static final class Companion {
private Companion() {
super();
}
}
}
I fixed kotlin version at current version and rebuild it. But there is not change anything. I search this errors and try their solutions. But didn't worked. And other problem I didn't any change in java file. Android Studio is saying "Files under the "build" folder are generated and should not be edited".
android android-studio kotlin android-gradle
add a comment |
I have a problem. I clone this github project. https://github.com/SimpleMobileTools/Simple-Calendar
Then I update Kotlin in Android Studio. When I run project, I take errors and I didn't solve them.
That are errors when I build it:
22:51:20: Executing task 'build'...
Executing tasks: [build]
:app:checkDebugClasspath UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mainApkListPersistenceDebug UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:kaptGenerateStubsDebugKotlin UP-TO-DATE
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:11: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:39: error: Cannot find getter for field.
private java.lang.String importId;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventType.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetition.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetitionException.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
:app:kaptDebugKotlin
w: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarprodatabasesEventsDatabase.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false.
public abstract class EventsDatabase extends androidx.room.RoomDatabase {
^
:app:kaptDebugKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUİLD FAILED in 4s
14 actionable tasks: 1 executed, 13 up-to-date
22:51:25: Task execution finished 'build'.
This is first errors' generated java class:
package com.simplemobiletools.calendar.pro.models;
import java.lang.System;
@androidx.room.Entity(tableName = "events", indices = {@androidx.room.Index(unique = true, value = {"id"})})
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000Xnu0002u0018u0002nu0002u0018u0002nu0000nu0002u0010tnu0000nu0002u0010bnu0002bu0002nu0002u0010u000enu0002b(nu0002u0010u000bnu0002bu001cnu0002u0010u0002nu0002bu0002nu0002u0018u0002nu0002bu0019nu0002u0010u0000nu0002bu0003nu0002u0018u0002nu0002bu0003nu0002u0010 nu0002bu0003nu0002u0018u0002nu0002bu0004bu0087bu0018u0000 z2u00020u0001:u0001zBu00b9u0001u0012bu0010u0002u001au0004u0018u00010u0003u0012bbu0002u0010u0004u001au00020u0005u0012bbu0002u0010u0006u001au00020u0005u0012bbu0002u0010u0007u001au00020bu0012bbu0002u0010tu001au00020bu0012bbu0002u0010nu001au00020bu0012bbu0002u0010u000bu001au00020u0005u0012bbu0002u0010fu001au00020u0005u0012bbu0002u0010ru001au00020u0005u0012bbu0002u0010u000eu001au00020u0005u0012bbu0002u0010u000fu001au00020u0005u0012bbu0002u0010u0010u001au00020u0005u0012bbu0002u0010u0011u001au00020bu0012bbu0002u0010u0012u001au00020u0005u0012bbu0002u0010u0013u001au00020u0003u0012bbu0002u0010u0014u001au00020u0003u0012bbu0002u0010u0015u001au00020u0003u0012bbu0002u0010u0016u001au00020bu00a2u0006u0002u0010u0017Ju000eu0010Mu001au00020N2u0006u0010Ou001au00020u0000Ju0018u0010Pu001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u0000Hu0002J u0010Su001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u00002u0006u0010Tu001au000201Hu0002Ju0010u0010Uu001au0004u0018u00010u0003Hu00c6u0003u00a2u0006u0002u0010*Jtu0010Vu001au00020u0005Hu00c6u0003Jtu0010Wu001au00020u0005Hu00c6u0003Jtu0010Xu001au00020u0005Hu00c6u0003Jtu0010Yu001au00020bHu00c6u0003Jtu0010Zu001au00020u0005Hu00c6u0003Jtu0010[u001au00020u0003Hu00c6u0003Jtu0010\u001au00020u0003Hu00c6u0003Jtu0010]u001au00020u0003Hu00c6u0003Jtu0010^u001au00020bHu00c6u0003Jtu0010_u001au00020u0005Hu00c6u0003Jtu0010`u001au00020u0005Hu00c6u0003Jtu0010au001au00020bHu00c6u0003Jtu0010bu001au00020bHu00c6u0003Jtu0010cu001au00020bHu00c6u0003Jtu0010du001au00020u0005Hu00c6u0003Jtu0010eu001au00020u0005Hu00c6u0003Jtu0010fu001au00020u0005Hu00c6u0003Ju00c4u0001u0010gu001au00020u00002nbu0002u0010u0002u001au0004u0018u00010u00032bbu0002u0010u0004u001au00020u00052bbu0002u0010u0006u001au00020u00052bbu0002u0010u0007u001au00020b2bbu0002u0010tu001au00020b2bbu0002u0010nu001au00020b2bbu0002u0010u000bu001au00020u00052bbu0002u0010fu001au00020u00052bbu0002u0010ru001au00020u00052bbu0002u0010u000eu001au00020u00052bbu0002u0010u000fu001au00020u00052bbu0002u0010u0010u001au00020u00052bbu0002u0010u0011u001au00020b2bbu0002u0010u0012u001au00020u00052bbu0002u0010u0013u001au00020u00032bbu0002u0010u0014u001au00020u00032bbu0002u0010u0015u001au00020u00032bbu0002u0010u0016u001au00020bHu00c6u0001u00a2u0006u0002u0010hJu0013u0010iu001au0002012bu0010ju001au0004u0018u00010kHu00d6u0003Ju0006u0010lu001au00020u0005Ju0006u0010mu001au00020u0003Ju0006u0010nu001au00020oJu0006u0010pu001au00020u0005Ju0006u0010qu001au000201Jfu0010ru001abu0012u0004u0012u00020u00050sJtu0010tu001au00020u0005Hu00d6u0001Ju0014u0010uu001au0002012fu0010vu001abu0012u0004u0012u00020u00050wJtu0010xu001au00020bHu00d6u0001Ju0006u0010yu001au00020NRu001au0010u0018u001au00020u0005Xu0086u000eu00a2u0006u000enu0000u001au0004bu0019u0010u001a"u0004bu001bu0010u001cRu001eu0010nu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bu001du0010u001e"u0004bu001fu0010 Ru001eu0010u0006u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b!u0010u001a"u0004b"u0010u001cRu001eu0010u0013u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b#u0010$"u0004b%u0010&Ru001eu0010u0012u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b'u0010u001a"u0004b(u0010u001cR"u0010u0002u001au0004u0018u00010u00038u0006@u0006Xu0087u000eu00a2u0006u0010nu0002u0010-u001au0004b)u0010*"u0004b+u0010,Ru001eu0010u0011u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b.u0010u001e"u0004b/u0010 R$u00100u001au0002012u0006u00100u001au0002018F@FXu0086u000eu00a2u0006fu001au0004b0u00102"u0004b3u00104Ru001eu0010u0015u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b5u0010$"u0004b6u0010&Ru001eu0010tu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b7u0010u001e"u0004b8u0010 Ru001eu0010u0014u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b9u0010$"u0004b:u0010&Ru001eu0010u000bu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b;u0010u001a"u0004b<u0010u001cRu001eu0010fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b=u0010u001a"u0004b>u0010u001cRu001eu0010ru001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b?u0010u001a"u0004b@u0010u001cRu001eu0010u000eu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bAu0010u001a"u0004bBu0010u001cRu001eu0010u0010u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bCu0010u001a"u0004bDu0010u001cRu001eu0010u000fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bEu0010u001a"u0004bFu0010u001cRu001eu0010u0016u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bGu0010u001e"u0004bHu0010 Ru001eu0010u0004u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bIu0010u001a"u0004bJu0010u001cRu001eu0010u0007u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bKu0010u001e"u0004bLu0010 u00a8u0006{"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event;", "Ljava/io/Serializable;", "id", "", "startTS", "", "endTS", "title", "", "location", "description", "reminder1Minutes", "reminder2Minutes", "reminder3Minutes", "repeatInterval", "repeatRule", "repeatLimit", "importId", "flags", "eventType", "parentId", "lastUpdated", "source", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)V", "color", "getColor", "()I", "setColor", "(I)V", "getDescription", "()Ljava/lang/String;", "setDescription", "(Ljava/lang/String;)V", "getEndTS", "setEndTS", "getEventType", "()J", "setEventType", "(J)V", "getFlags", "setFlags", "getId", "()Ljava/lang/Long;", "setId", "(Ljava/lang/Long;)V", "Ljava/lang/Long;", "getImportId", "setImportId", "isPastEvent", "", "()Z", "setPastEvent", "(Z)V", "getLastUpdated", "setLastUpdated", "getLocation", "setLocation", "getParentId", "setParentId", "getReminder1Minutes", "setReminder1Minutes", "getReminder2Minutes", "setReminder2Minutes", "getReminder3Minutes", "setReminder3Minutes", "getRepeatInterval", "setRepeatInterval", "getRepeatLimit", "setRepeatLimit", "getRepeatRule", "setRepeatRule", "getSource", "setSource", "getStartTS", "setStartTS", "getTitle", "setTitle", "addIntervalTime", "", "original", "addMonthsWithSameDay", "Lorg/joda/time/DateTime;", "currStart", "addXthDayInterval", "forceLastWeekday", "component1", "component10", "component11", "component12", "component13", "component14", "component15", "component16", "component17", "component18", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)Lcom/simplemobiletools/calendar/pro/models/Event;", "equals", "other", "", "getCalDAVCalendarId", "getCalDAVEventId", "getEventRepetition", "Lcom/simplemobiletools/calendar/pro/models/EventRepetition;", "getEventStartTS", "getIsAllDay", "getReminders", "", "hashCode", "isOnProperWeek", "startTimes", "Landroidx/collection/LongSparseArray;", "toString", "updateIsPastEvent", "Companion", "calendar_debug"})
public final class Event implements java.io.Serializable {
private int color;
@org.jetbrains.annotations.Nullable()
@androidx.room.PrimaryKey(autoGenerate = true)
private java.lang.Long id;
@androidx.room.ColumnInfo(name = "start_ts")
private int startTS;
@androidx.room.ColumnInfo(name = "end_ts")
private int endTS;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "title")
private java.lang.String title;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "location")
private java.lang.String location;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "description")
private java.lang.String description;
@androidx.room.ColumnInfo(name = "reminder_1_minutes")
private int reminder1Minutes;
@androidx.room.ColumnInfo(name = "reminder_2_minutes")
private int reminder2Minutes;
@androidx.room.ColumnInfo(name = "reminder_3_minutes")
private int reminder3Minutes;
@androidx.room.ColumnInfo(name = "repeat_interval")
private int repeatInterval;
@androidx.room.ColumnInfo(name = "repeat_rule")
private int repeatRule;
@androidx.room.ColumnInfo(name = "repeat_limit")
private int repeatLimit;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "import_id")
private java.lang.String importId;
@androidx.room.ColumnInfo(name = "flags")
private int flags;
@androidx.room.ColumnInfo(name = "event_type")
private long eventType;
@androidx.room.ColumnInfo(name = "parent_id")
private long parentId;
@androidx.room.ColumnInfo(name = "last_updated")
private long lastUpdated;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "source")
private java.lang.String source;
private static final long serialVersionUID = -32456795132345616L;
public static final com.simplemobiletools.calendar.pro.models.Event.Companion Companion = null;
public final void addIntervalTime(@org.jetbrains.annotations.NotNull()
com.simplemobiletools.calendar.pro.models.Event original) {
}
private final org.joda.time.DateTime addMonthsWithSameDay(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original) {
return null;
}
private final org.joda.time.DateTime addXthDayInterval(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original, boolean forceLastWeekday) {
return null;
}
public final boolean getIsAllDay() {
return false;
}
@org.jetbrains.annotations.NotNull()
public final java.util.List<java.lang.Integer> getReminders() {
return null;
}
public final int getEventStartTS() {
return 0;
}
public final long getCalDAVEventId() {
return 0L;
}
public final int getCalDAVCalendarId() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.EventRepetition getEventRepetition() {
return null;
}
public final boolean isOnProperWeek(@org.jetbrains.annotations.NotNull()
androidx.collection.LongSparseArray<java.lang.Integer> startTimes) {
return false;
}
public final void updateIsPastEvent() {
}
public final boolean isPastEvent() {
return false;
}
public final void setPastEvent(boolean isPastEvent) {
}
public final int getColor() {
return 0;
}
public final void setColor(int p0) {
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long getId() {
return null;
}
public final void setId(@org.jetbrains.annotations.Nullable()
java.lang.Long p0) {
}
public final int getStartTS() {
return 0;
}
public final void setStartTS(int p0) {
}
public final int getEndTS() {
return 0;
}
public final void setEndTS(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getTitle() {
return null;
}
public final void setTitle(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getLocation() {
return null;
}
public final void setLocation(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getDescription() {
return null;
}
public final void setDescription(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getReminder1Minutes() {
return 0;
}
public final void setReminder1Minutes(int p0) {
}
public final int getReminder2Minutes() {
return 0;
}
public final void setReminder2Minutes(int p0) {
}
public final int getReminder3Minutes() {
return 0;
}
public final void setReminder3Minutes(int p0) {
}
public final int getRepeatInterval() {
return 0;
}
public final void setRepeatInterval(int p0) {
}
public final int getRepeatRule() {
return 0;
}
public final void setRepeatRule(int p0) {
}
public final int getRepeatLimit() {
return 0;
}
public final void setRepeatLimit(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getImportId() {
return null;
}
public final void setImportId(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getFlags() {
return 0;
}
public final void setFlags(int p0) {
}
public final long getEventType() {
return 0L;
}
public final void setEventType(long p0) {
}
public final long getParentId() {
return 0L;
}
public final void setParentId(long p0) {
}
public final long getLastUpdated() {
return 0L;
}
public final void setLastUpdated(long p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getSource() {
return null;
}
public final void setSource(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public Event(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
super();
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long component1() {
return null;
}
public final int component2() {
return 0;
}
public final int component3() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component4() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component5() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component6() {
return null;
}
public final int component7() {
return 0;
}
public final int component8() {
return 0;
}
public final int component9() {
return 0;
}
public final int component10() {
return 0;
}
public final int component11() {
return 0;
}
public final int component12() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component13() {
return null;
}
public final int component14() {
return 0;
}
public final long component15() {
return 0L;
}
public final long component16() {
return 0L;
}
public final long component17() {
return 0L;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component18() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.Event copy(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
return null;
}
@org.jetbrains.annotations.NotNull()
@java.lang.Override()
public java.lang.String toString() {
return null;
}
@java.lang.Override()
public int hashCode() {
return 0;
}
@java.lang.Override()
public boolean equals(@org.jetbrains.annotations.Nullable()
java.lang.Object p0) {
return false;
}
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000u0012nu0002u0018u0002nu0002u0010u0000nu0002bu0002nu0002u0010tnu0000bu0086u0003u0018u00002u00020u0001Bu0007bu0002u00a2u0006u0002u0010u0002Ru000eu0010u0003u001au00020u0004Xu0082Tu00a2u0006u0002nu0000u00a8u0006u0005"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event$Companion;", "", "()V", "serialVersionUID", "", "calendar_debug"})
public static final class Companion {
private Companion() {
super();
}
}
}
I fixed kotlin version at current version and rebuild it. But there is not change anything. I search this errors and try their solutions. But didn't worked. And other problem I didn't any change in java file. Android Studio is saying "Files under the "build" folder are generated and should not be edited".
android android-studio kotlin android-gradle
add a comment |
I have a problem. I clone this github project. https://github.com/SimpleMobileTools/Simple-Calendar
Then I update Kotlin in Android Studio. When I run project, I take errors and I didn't solve them.
That are errors when I build it:
22:51:20: Executing task 'build'...
Executing tasks: [build]
:app:checkDebugClasspath UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mainApkListPersistenceDebug UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:kaptGenerateStubsDebugKotlin UP-TO-DATE
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:11: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:39: error: Cannot find getter for field.
private java.lang.String importId;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventType.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetition.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetitionException.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
:app:kaptDebugKotlin
w: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarprodatabasesEventsDatabase.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false.
public abstract class EventsDatabase extends androidx.room.RoomDatabase {
^
:app:kaptDebugKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUİLD FAILED in 4s
14 actionable tasks: 1 executed, 13 up-to-date
22:51:25: Task execution finished 'build'.
This is first errors' generated java class:
package com.simplemobiletools.calendar.pro.models;
import java.lang.System;
@androidx.room.Entity(tableName = "events", indices = {@androidx.room.Index(unique = true, value = {"id"})})
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000Xnu0002u0018u0002nu0002u0018u0002nu0000nu0002u0010tnu0000nu0002u0010bnu0002bu0002nu0002u0010u000enu0002b(nu0002u0010u000bnu0002bu001cnu0002u0010u0002nu0002bu0002nu0002u0018u0002nu0002bu0019nu0002u0010u0000nu0002bu0003nu0002u0018u0002nu0002bu0003nu0002u0010 nu0002bu0003nu0002u0018u0002nu0002bu0004bu0087bu0018u0000 z2u00020u0001:u0001zBu00b9u0001u0012bu0010u0002u001au0004u0018u00010u0003u0012bbu0002u0010u0004u001au00020u0005u0012bbu0002u0010u0006u001au00020u0005u0012bbu0002u0010u0007u001au00020bu0012bbu0002u0010tu001au00020bu0012bbu0002u0010nu001au00020bu0012bbu0002u0010u000bu001au00020u0005u0012bbu0002u0010fu001au00020u0005u0012bbu0002u0010ru001au00020u0005u0012bbu0002u0010u000eu001au00020u0005u0012bbu0002u0010u000fu001au00020u0005u0012bbu0002u0010u0010u001au00020u0005u0012bbu0002u0010u0011u001au00020bu0012bbu0002u0010u0012u001au00020u0005u0012bbu0002u0010u0013u001au00020u0003u0012bbu0002u0010u0014u001au00020u0003u0012bbu0002u0010u0015u001au00020u0003u0012bbu0002u0010u0016u001au00020bu00a2u0006u0002u0010u0017Ju000eu0010Mu001au00020N2u0006u0010Ou001au00020u0000Ju0018u0010Pu001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u0000Hu0002J u0010Su001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u00002u0006u0010Tu001au000201Hu0002Ju0010u0010Uu001au0004u0018u00010u0003Hu00c6u0003u00a2u0006u0002u0010*Jtu0010Vu001au00020u0005Hu00c6u0003Jtu0010Wu001au00020u0005Hu00c6u0003Jtu0010Xu001au00020u0005Hu00c6u0003Jtu0010Yu001au00020bHu00c6u0003Jtu0010Zu001au00020u0005Hu00c6u0003Jtu0010[u001au00020u0003Hu00c6u0003Jtu0010\u001au00020u0003Hu00c6u0003Jtu0010]u001au00020u0003Hu00c6u0003Jtu0010^u001au00020bHu00c6u0003Jtu0010_u001au00020u0005Hu00c6u0003Jtu0010`u001au00020u0005Hu00c6u0003Jtu0010au001au00020bHu00c6u0003Jtu0010bu001au00020bHu00c6u0003Jtu0010cu001au00020bHu00c6u0003Jtu0010du001au00020u0005Hu00c6u0003Jtu0010eu001au00020u0005Hu00c6u0003Jtu0010fu001au00020u0005Hu00c6u0003Ju00c4u0001u0010gu001au00020u00002nbu0002u0010u0002u001au0004u0018u00010u00032bbu0002u0010u0004u001au00020u00052bbu0002u0010u0006u001au00020u00052bbu0002u0010u0007u001au00020b2bbu0002u0010tu001au00020b2bbu0002u0010nu001au00020b2bbu0002u0010u000bu001au00020u00052bbu0002u0010fu001au00020u00052bbu0002u0010ru001au00020u00052bbu0002u0010u000eu001au00020u00052bbu0002u0010u000fu001au00020u00052bbu0002u0010u0010u001au00020u00052bbu0002u0010u0011u001au00020b2bbu0002u0010u0012u001au00020u00052bbu0002u0010u0013u001au00020u00032bbu0002u0010u0014u001au00020u00032bbu0002u0010u0015u001au00020u00032bbu0002u0010u0016u001au00020bHu00c6u0001u00a2u0006u0002u0010hJu0013u0010iu001au0002012bu0010ju001au0004u0018u00010kHu00d6u0003Ju0006u0010lu001au00020u0005Ju0006u0010mu001au00020u0003Ju0006u0010nu001au00020oJu0006u0010pu001au00020u0005Ju0006u0010qu001au000201Jfu0010ru001abu0012u0004u0012u00020u00050sJtu0010tu001au00020u0005Hu00d6u0001Ju0014u0010uu001au0002012fu0010vu001abu0012u0004u0012u00020u00050wJtu0010xu001au00020bHu00d6u0001Ju0006u0010yu001au00020NRu001au0010u0018u001au00020u0005Xu0086u000eu00a2u0006u000enu0000u001au0004bu0019u0010u001a"u0004bu001bu0010u001cRu001eu0010nu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bu001du0010u001e"u0004bu001fu0010 Ru001eu0010u0006u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b!u0010u001a"u0004b"u0010u001cRu001eu0010u0013u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b#u0010$"u0004b%u0010&Ru001eu0010u0012u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b'u0010u001a"u0004b(u0010u001cR"u0010u0002u001au0004u0018u00010u00038u0006@u0006Xu0087u000eu00a2u0006u0010nu0002u0010-u001au0004b)u0010*"u0004b+u0010,Ru001eu0010u0011u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b.u0010u001e"u0004b/u0010 R$u00100u001au0002012u0006u00100u001au0002018F@FXu0086u000eu00a2u0006fu001au0004b0u00102"u0004b3u00104Ru001eu0010u0015u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b5u0010$"u0004b6u0010&Ru001eu0010tu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b7u0010u001e"u0004b8u0010 Ru001eu0010u0014u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b9u0010$"u0004b:u0010&Ru001eu0010u000bu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b;u0010u001a"u0004b<u0010u001cRu001eu0010fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b=u0010u001a"u0004b>u0010u001cRu001eu0010ru001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b?u0010u001a"u0004b@u0010u001cRu001eu0010u000eu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bAu0010u001a"u0004bBu0010u001cRu001eu0010u0010u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bCu0010u001a"u0004bDu0010u001cRu001eu0010u000fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bEu0010u001a"u0004bFu0010u001cRu001eu0010u0016u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bGu0010u001e"u0004bHu0010 Ru001eu0010u0004u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bIu0010u001a"u0004bJu0010u001cRu001eu0010u0007u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bKu0010u001e"u0004bLu0010 u00a8u0006{"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event;", "Ljava/io/Serializable;", "id", "", "startTS", "", "endTS", "title", "", "location", "description", "reminder1Minutes", "reminder2Minutes", "reminder3Minutes", "repeatInterval", "repeatRule", "repeatLimit", "importId", "flags", "eventType", "parentId", "lastUpdated", "source", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)V", "color", "getColor", "()I", "setColor", "(I)V", "getDescription", "()Ljava/lang/String;", "setDescription", "(Ljava/lang/String;)V", "getEndTS", "setEndTS", "getEventType", "()J", "setEventType", "(J)V", "getFlags", "setFlags", "getId", "()Ljava/lang/Long;", "setId", "(Ljava/lang/Long;)V", "Ljava/lang/Long;", "getImportId", "setImportId", "isPastEvent", "", "()Z", "setPastEvent", "(Z)V", "getLastUpdated", "setLastUpdated", "getLocation", "setLocation", "getParentId", "setParentId", "getReminder1Minutes", "setReminder1Minutes", "getReminder2Minutes", "setReminder2Minutes", "getReminder3Minutes", "setReminder3Minutes", "getRepeatInterval", "setRepeatInterval", "getRepeatLimit", "setRepeatLimit", "getRepeatRule", "setRepeatRule", "getSource", "setSource", "getStartTS", "setStartTS", "getTitle", "setTitle", "addIntervalTime", "", "original", "addMonthsWithSameDay", "Lorg/joda/time/DateTime;", "currStart", "addXthDayInterval", "forceLastWeekday", "component1", "component10", "component11", "component12", "component13", "component14", "component15", "component16", "component17", "component18", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)Lcom/simplemobiletools/calendar/pro/models/Event;", "equals", "other", "", "getCalDAVCalendarId", "getCalDAVEventId", "getEventRepetition", "Lcom/simplemobiletools/calendar/pro/models/EventRepetition;", "getEventStartTS", "getIsAllDay", "getReminders", "", "hashCode", "isOnProperWeek", "startTimes", "Landroidx/collection/LongSparseArray;", "toString", "updateIsPastEvent", "Companion", "calendar_debug"})
public final class Event implements java.io.Serializable {
private int color;
@org.jetbrains.annotations.Nullable()
@androidx.room.PrimaryKey(autoGenerate = true)
private java.lang.Long id;
@androidx.room.ColumnInfo(name = "start_ts")
private int startTS;
@androidx.room.ColumnInfo(name = "end_ts")
private int endTS;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "title")
private java.lang.String title;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "location")
private java.lang.String location;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "description")
private java.lang.String description;
@androidx.room.ColumnInfo(name = "reminder_1_minutes")
private int reminder1Minutes;
@androidx.room.ColumnInfo(name = "reminder_2_minutes")
private int reminder2Minutes;
@androidx.room.ColumnInfo(name = "reminder_3_minutes")
private int reminder3Minutes;
@androidx.room.ColumnInfo(name = "repeat_interval")
private int repeatInterval;
@androidx.room.ColumnInfo(name = "repeat_rule")
private int repeatRule;
@androidx.room.ColumnInfo(name = "repeat_limit")
private int repeatLimit;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "import_id")
private java.lang.String importId;
@androidx.room.ColumnInfo(name = "flags")
private int flags;
@androidx.room.ColumnInfo(name = "event_type")
private long eventType;
@androidx.room.ColumnInfo(name = "parent_id")
private long parentId;
@androidx.room.ColumnInfo(name = "last_updated")
private long lastUpdated;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "source")
private java.lang.String source;
private static final long serialVersionUID = -32456795132345616L;
public static final com.simplemobiletools.calendar.pro.models.Event.Companion Companion = null;
public final void addIntervalTime(@org.jetbrains.annotations.NotNull()
com.simplemobiletools.calendar.pro.models.Event original) {
}
private final org.joda.time.DateTime addMonthsWithSameDay(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original) {
return null;
}
private final org.joda.time.DateTime addXthDayInterval(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original, boolean forceLastWeekday) {
return null;
}
public final boolean getIsAllDay() {
return false;
}
@org.jetbrains.annotations.NotNull()
public final java.util.List<java.lang.Integer> getReminders() {
return null;
}
public final int getEventStartTS() {
return 0;
}
public final long getCalDAVEventId() {
return 0L;
}
public final int getCalDAVCalendarId() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.EventRepetition getEventRepetition() {
return null;
}
public final boolean isOnProperWeek(@org.jetbrains.annotations.NotNull()
androidx.collection.LongSparseArray<java.lang.Integer> startTimes) {
return false;
}
public final void updateIsPastEvent() {
}
public final boolean isPastEvent() {
return false;
}
public final void setPastEvent(boolean isPastEvent) {
}
public final int getColor() {
return 0;
}
public final void setColor(int p0) {
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long getId() {
return null;
}
public final void setId(@org.jetbrains.annotations.Nullable()
java.lang.Long p0) {
}
public final int getStartTS() {
return 0;
}
public final void setStartTS(int p0) {
}
public final int getEndTS() {
return 0;
}
public final void setEndTS(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getTitle() {
return null;
}
public final void setTitle(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getLocation() {
return null;
}
public final void setLocation(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getDescription() {
return null;
}
public final void setDescription(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getReminder1Minutes() {
return 0;
}
public final void setReminder1Minutes(int p0) {
}
public final int getReminder2Minutes() {
return 0;
}
public final void setReminder2Minutes(int p0) {
}
public final int getReminder3Minutes() {
return 0;
}
public final void setReminder3Minutes(int p0) {
}
public final int getRepeatInterval() {
return 0;
}
public final void setRepeatInterval(int p0) {
}
public final int getRepeatRule() {
return 0;
}
public final void setRepeatRule(int p0) {
}
public final int getRepeatLimit() {
return 0;
}
public final void setRepeatLimit(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getImportId() {
return null;
}
public final void setImportId(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getFlags() {
return 0;
}
public final void setFlags(int p0) {
}
public final long getEventType() {
return 0L;
}
public final void setEventType(long p0) {
}
public final long getParentId() {
return 0L;
}
public final void setParentId(long p0) {
}
public final long getLastUpdated() {
return 0L;
}
public final void setLastUpdated(long p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getSource() {
return null;
}
public final void setSource(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public Event(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
super();
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long component1() {
return null;
}
public final int component2() {
return 0;
}
public final int component3() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component4() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component5() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component6() {
return null;
}
public final int component7() {
return 0;
}
public final int component8() {
return 0;
}
public final int component9() {
return 0;
}
public final int component10() {
return 0;
}
public final int component11() {
return 0;
}
public final int component12() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component13() {
return null;
}
public final int component14() {
return 0;
}
public final long component15() {
return 0L;
}
public final long component16() {
return 0L;
}
public final long component17() {
return 0L;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component18() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.Event copy(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
return null;
}
@org.jetbrains.annotations.NotNull()
@java.lang.Override()
public java.lang.String toString() {
return null;
}
@java.lang.Override()
public int hashCode() {
return 0;
}
@java.lang.Override()
public boolean equals(@org.jetbrains.annotations.Nullable()
java.lang.Object p0) {
return false;
}
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000u0012nu0002u0018u0002nu0002u0010u0000nu0002bu0002nu0002u0010tnu0000bu0086u0003u0018u00002u00020u0001Bu0007bu0002u00a2u0006u0002u0010u0002Ru000eu0010u0003u001au00020u0004Xu0082Tu00a2u0006u0002nu0000u00a8u0006u0005"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event$Companion;", "", "()V", "serialVersionUID", "", "calendar_debug"})
public static final class Companion {
private Companion() {
super();
}
}
}
I fixed kotlin version at current version and rebuild it. But there is not change anything. I search this errors and try their solutions. But didn't worked. And other problem I didn't any change in java file. Android Studio is saying "Files under the "build" folder are generated and should not be edited".
android android-studio kotlin android-gradle
I have a problem. I clone this github project. https://github.com/SimpleMobileTools/Simple-Calendar
Then I update Kotlin in Android Studio. When I run project, I take errors and I didn't solve them.
That are errors when I build it:
22:51:20: Executing task 'build'...
Executing tasks: [build]
:app:checkDebugClasspath UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mainApkListPersistenceDebug UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:kaptGenerateStubsDebugKotlin UP-TO-DATE
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:11: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEvent.java:39: error: Cannot find getter for field.
private java.lang.String importId;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventType.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetition.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
e: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarpromodelsEventRepetitionException.java:10: error: Cannot find getter for field.
private java.lang.Long id;
^
:app:kaptDebugKotlin
w: C:UsersAyberkSimple-Calendarappbuildtmpkapt3stubsdebugcomsimplemobiletoolscalendarprodatabasesEventsDatabase.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false.
public abstract class EventsDatabase extends androidx.room.RoomDatabase {
^
:app:kaptDebugKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUİLD FAILED in 4s
14 actionable tasks: 1 executed, 13 up-to-date
22:51:25: Task execution finished 'build'.
This is first errors' generated java class:
package com.simplemobiletools.calendar.pro.models;
import java.lang.System;
@androidx.room.Entity(tableName = "events", indices = {@androidx.room.Index(unique = true, value = {"id"})})
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000Xnu0002u0018u0002nu0002u0018u0002nu0000nu0002u0010tnu0000nu0002u0010bnu0002bu0002nu0002u0010u000enu0002b(nu0002u0010u000bnu0002bu001cnu0002u0010u0002nu0002bu0002nu0002u0018u0002nu0002bu0019nu0002u0010u0000nu0002bu0003nu0002u0018u0002nu0002bu0003nu0002u0010 nu0002bu0003nu0002u0018u0002nu0002bu0004bu0087bu0018u0000 z2u00020u0001:u0001zBu00b9u0001u0012bu0010u0002u001au0004u0018u00010u0003u0012bbu0002u0010u0004u001au00020u0005u0012bbu0002u0010u0006u001au00020u0005u0012bbu0002u0010u0007u001au00020bu0012bbu0002u0010tu001au00020bu0012bbu0002u0010nu001au00020bu0012bbu0002u0010u000bu001au00020u0005u0012bbu0002u0010fu001au00020u0005u0012bbu0002u0010ru001au00020u0005u0012bbu0002u0010u000eu001au00020u0005u0012bbu0002u0010u000fu001au00020u0005u0012bbu0002u0010u0010u001au00020u0005u0012bbu0002u0010u0011u001au00020bu0012bbu0002u0010u0012u001au00020u0005u0012bbu0002u0010u0013u001au00020u0003u0012bbu0002u0010u0014u001au00020u0003u0012bbu0002u0010u0015u001au00020u0003u0012bbu0002u0010u0016u001au00020bu00a2u0006u0002u0010u0017Ju000eu0010Mu001au00020N2u0006u0010Ou001au00020u0000Ju0018u0010Pu001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u0000Hu0002J u0010Su001au00020Q2u0006u0010Ru001au00020Q2u0006u0010Ou001au00020u00002u0006u0010Tu001au000201Hu0002Ju0010u0010Uu001au0004u0018u00010u0003Hu00c6u0003u00a2u0006u0002u0010*Jtu0010Vu001au00020u0005Hu00c6u0003Jtu0010Wu001au00020u0005Hu00c6u0003Jtu0010Xu001au00020u0005Hu00c6u0003Jtu0010Yu001au00020bHu00c6u0003Jtu0010Zu001au00020u0005Hu00c6u0003Jtu0010[u001au00020u0003Hu00c6u0003Jtu0010\u001au00020u0003Hu00c6u0003Jtu0010]u001au00020u0003Hu00c6u0003Jtu0010^u001au00020bHu00c6u0003Jtu0010_u001au00020u0005Hu00c6u0003Jtu0010`u001au00020u0005Hu00c6u0003Jtu0010au001au00020bHu00c6u0003Jtu0010bu001au00020bHu00c6u0003Jtu0010cu001au00020bHu00c6u0003Jtu0010du001au00020u0005Hu00c6u0003Jtu0010eu001au00020u0005Hu00c6u0003Jtu0010fu001au00020u0005Hu00c6u0003Ju00c4u0001u0010gu001au00020u00002nbu0002u0010u0002u001au0004u0018u00010u00032bbu0002u0010u0004u001au00020u00052bbu0002u0010u0006u001au00020u00052bbu0002u0010u0007u001au00020b2bbu0002u0010tu001au00020b2bbu0002u0010nu001au00020b2bbu0002u0010u000bu001au00020u00052bbu0002u0010fu001au00020u00052bbu0002u0010ru001au00020u00052bbu0002u0010u000eu001au00020u00052bbu0002u0010u000fu001au00020u00052bbu0002u0010u0010u001au00020u00052bbu0002u0010u0011u001au00020b2bbu0002u0010u0012u001au00020u00052bbu0002u0010u0013u001au00020u00032bbu0002u0010u0014u001au00020u00032bbu0002u0010u0015u001au00020u00032bbu0002u0010u0016u001au00020bHu00c6u0001u00a2u0006u0002u0010hJu0013u0010iu001au0002012bu0010ju001au0004u0018u00010kHu00d6u0003Ju0006u0010lu001au00020u0005Ju0006u0010mu001au00020u0003Ju0006u0010nu001au00020oJu0006u0010pu001au00020u0005Ju0006u0010qu001au000201Jfu0010ru001abu0012u0004u0012u00020u00050sJtu0010tu001au00020u0005Hu00d6u0001Ju0014u0010uu001au0002012fu0010vu001abu0012u0004u0012u00020u00050wJtu0010xu001au00020bHu00d6u0001Ju0006u0010yu001au00020NRu001au0010u0018u001au00020u0005Xu0086u000eu00a2u0006u000enu0000u001au0004bu0019u0010u001a"u0004bu001bu0010u001cRu001eu0010nu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bu001du0010u001e"u0004bu001fu0010 Ru001eu0010u0006u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b!u0010u001a"u0004b"u0010u001cRu001eu0010u0013u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b#u0010$"u0004b%u0010&Ru001eu0010u0012u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b'u0010u001a"u0004b(u0010u001cR"u0010u0002u001au0004u0018u00010u00038u0006@u0006Xu0087u000eu00a2u0006u0010nu0002u0010-u001au0004b)u0010*"u0004b+u0010,Ru001eu0010u0011u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b.u0010u001e"u0004b/u0010 R$u00100u001au0002012u0006u00100u001au0002018F@FXu0086u000eu00a2u0006fu001au0004b0u00102"u0004b3u00104Ru001eu0010u0015u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b5u0010$"u0004b6u0010&Ru001eu0010tu001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b7u0010u001e"u0004b8u0010 Ru001eu0010u0014u001au00020u00038u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b9u0010$"u0004b:u0010&Ru001eu0010u000bu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b;u0010u001a"u0004b<u0010u001cRu001eu0010fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b=u0010u001a"u0004b>u0010u001cRu001eu0010ru001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004b?u0010u001a"u0004b@u0010u001cRu001eu0010u000eu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bAu0010u001a"u0004bBu0010u001cRu001eu0010u0010u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bCu0010u001a"u0004bDu0010u001cRu001eu0010u000fu001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bEu0010u001a"u0004bFu0010u001cRu001eu0010u0016u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bGu0010u001e"u0004bHu0010 Ru001eu0010u0004u001au00020u00058u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bIu0010u001a"u0004bJu0010u001cRu001eu0010u0007u001au00020b8u0006@u0006Xu0087u000eu00a2u0006u000enu0000u001au0004bKu0010u001e"u0004bLu0010 u00a8u0006{"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event;", "Ljava/io/Serializable;", "id", "", "startTS", "", "endTS", "title", "", "location", "description", "reminder1Minutes", "reminder2Minutes", "reminder3Minutes", "repeatInterval", "repeatRule", "repeatLimit", "importId", "flags", "eventType", "parentId", "lastUpdated", "source", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)V", "color", "getColor", "()I", "setColor", "(I)V", "getDescription", "()Ljava/lang/String;", "setDescription", "(Ljava/lang/String;)V", "getEndTS", "setEndTS", "getEventType", "()J", "setEventType", "(J)V", "getFlags", "setFlags", "getId", "()Ljava/lang/Long;", "setId", "(Ljava/lang/Long;)V", "Ljava/lang/Long;", "getImportId", "setImportId", "isPastEvent", "", "()Z", "setPastEvent", "(Z)V", "getLastUpdated", "setLastUpdated", "getLocation", "setLocation", "getParentId", "setParentId", "getReminder1Minutes", "setReminder1Minutes", "getReminder2Minutes", "setReminder2Minutes", "getReminder3Minutes", "setReminder3Minutes", "getRepeatInterval", "setRepeatInterval", "getRepeatLimit", "setRepeatLimit", "getRepeatRule", "setRepeatRule", "getSource", "setSource", "getStartTS", "setStartTS", "getTitle", "setTitle", "addIntervalTime", "", "original", "addMonthsWithSameDay", "Lorg/joda/time/DateTime;", "currStart", "addXthDayInterval", "forceLastWeekday", "component1", "component10", "component11", "component12", "component13", "component14", "component15", "component16", "component17", "component18", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "(Ljava/lang/Long;IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIIIILjava/lang/String;IJJJLjava/lang/String;)Lcom/simplemobiletools/calendar/pro/models/Event;", "equals", "other", "", "getCalDAVCalendarId", "getCalDAVEventId", "getEventRepetition", "Lcom/simplemobiletools/calendar/pro/models/EventRepetition;", "getEventStartTS", "getIsAllDay", "getReminders", "", "hashCode", "isOnProperWeek", "startTimes", "Landroidx/collection/LongSparseArray;", "toString", "updateIsPastEvent", "Companion", "calendar_debug"})
public final class Event implements java.io.Serializable {
private int color;
@org.jetbrains.annotations.Nullable()
@androidx.room.PrimaryKey(autoGenerate = true)
private java.lang.Long id;
@androidx.room.ColumnInfo(name = "start_ts")
private int startTS;
@androidx.room.ColumnInfo(name = "end_ts")
private int endTS;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "title")
private java.lang.String title;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "location")
private java.lang.String location;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "description")
private java.lang.String description;
@androidx.room.ColumnInfo(name = "reminder_1_minutes")
private int reminder1Minutes;
@androidx.room.ColumnInfo(name = "reminder_2_minutes")
private int reminder2Minutes;
@androidx.room.ColumnInfo(name = "reminder_3_minutes")
private int reminder3Minutes;
@androidx.room.ColumnInfo(name = "repeat_interval")
private int repeatInterval;
@androidx.room.ColumnInfo(name = "repeat_rule")
private int repeatRule;
@androidx.room.ColumnInfo(name = "repeat_limit")
private int repeatLimit;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "import_id")
private java.lang.String importId;
@androidx.room.ColumnInfo(name = "flags")
private int flags;
@androidx.room.ColumnInfo(name = "event_type")
private long eventType;
@androidx.room.ColumnInfo(name = "parent_id")
private long parentId;
@androidx.room.ColumnInfo(name = "last_updated")
private long lastUpdated;
@org.jetbrains.annotations.NotNull()
@androidx.room.ColumnInfo(name = "source")
private java.lang.String source;
private static final long serialVersionUID = -32456795132345616L;
public static final com.simplemobiletools.calendar.pro.models.Event.Companion Companion = null;
public final void addIntervalTime(@org.jetbrains.annotations.NotNull()
com.simplemobiletools.calendar.pro.models.Event original) {
}
private final org.joda.time.DateTime addMonthsWithSameDay(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original) {
return null;
}
private final org.joda.time.DateTime addXthDayInterval(org.joda.time.DateTime currStart, com.simplemobiletools.calendar.pro.models.Event original, boolean forceLastWeekday) {
return null;
}
public final boolean getIsAllDay() {
return false;
}
@org.jetbrains.annotations.NotNull()
public final java.util.List<java.lang.Integer> getReminders() {
return null;
}
public final int getEventStartTS() {
return 0;
}
public final long getCalDAVEventId() {
return 0L;
}
public final int getCalDAVCalendarId() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.EventRepetition getEventRepetition() {
return null;
}
public final boolean isOnProperWeek(@org.jetbrains.annotations.NotNull()
androidx.collection.LongSparseArray<java.lang.Integer> startTimes) {
return false;
}
public final void updateIsPastEvent() {
}
public final boolean isPastEvent() {
return false;
}
public final void setPastEvent(boolean isPastEvent) {
}
public final int getColor() {
return 0;
}
public final void setColor(int p0) {
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long getId() {
return null;
}
public final void setId(@org.jetbrains.annotations.Nullable()
java.lang.Long p0) {
}
public final int getStartTS() {
return 0;
}
public final void setStartTS(int p0) {
}
public final int getEndTS() {
return 0;
}
public final void setEndTS(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getTitle() {
return null;
}
public final void setTitle(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getLocation() {
return null;
}
public final void setLocation(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getDescription() {
return null;
}
public final void setDescription(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getReminder1Minutes() {
return 0;
}
public final void setReminder1Minutes(int p0) {
}
public final int getReminder2Minutes() {
return 0;
}
public final void setReminder2Minutes(int p0) {
}
public final int getReminder3Minutes() {
return 0;
}
public final void setReminder3Minutes(int p0) {
}
public final int getRepeatInterval() {
return 0;
}
public final void setRepeatInterval(int p0) {
}
public final int getRepeatRule() {
return 0;
}
public final void setRepeatRule(int p0) {
}
public final int getRepeatLimit() {
return 0;
}
public final void setRepeatLimit(int p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getImportId() {
return null;
}
public final void setImportId(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public final int getFlags() {
return 0;
}
public final void setFlags(int p0) {
}
public final long getEventType() {
return 0L;
}
public final void setEventType(long p0) {
}
public final long getParentId() {
return 0L;
}
public final void setParentId(long p0) {
}
public final long getLastUpdated() {
return 0L;
}
public final void setLastUpdated(long p0) {
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getSource() {
return null;
}
public final void setSource(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
public Event(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
super();
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Long component1() {
return null;
}
public final int component2() {
return 0;
}
public final int component3() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component4() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component5() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component6() {
return null;
}
public final int component7() {
return 0;
}
public final int component8() {
return 0;
}
public final int component9() {
return 0;
}
public final int component10() {
return 0;
}
public final int component11() {
return 0;
}
public final int component12() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component13() {
return null;
}
public final int component14() {
return 0;
}
public final long component15() {
return 0L;
}
public final long component16() {
return 0L;
}
public final long component17() {
return 0L;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component18() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final com.simplemobiletools.calendar.pro.models.Event copy(@org.jetbrains.annotations.Nullable()
java.lang.Long id, int startTS, int endTS, @org.jetbrains.annotations.NotNull()
java.lang.String title, @org.jetbrains.annotations.NotNull()
java.lang.String location, @org.jetbrains.annotations.NotNull()
java.lang.String description, int reminder1Minutes, int reminder2Minutes, int reminder3Minutes, int repeatInterval, int repeatRule, int repeatLimit, @org.jetbrains.annotations.NotNull()
java.lang.String importId, int flags, long eventType, long parentId, long lastUpdated, @org.jetbrains.annotations.NotNull()
java.lang.String source) {
return null;
}
@org.jetbrains.annotations.NotNull()
@java.lang.Override()
public java.lang.String toString() {
return null;
}
@java.lang.Override()
public int hashCode() {
return 0;
}
@java.lang.Override()
public boolean equals(@org.jetbrains.annotations.Nullable()
java.lang.Object p0) {
return false;
}
@kotlin.Metadata(mv = {1, 1, 13}, bv = {1, 0, 3}, k = 1, d1 = {"u0000u0012nu0002u0018u0002nu0002u0010u0000nu0002bu0002nu0002u0010tnu0000bu0086u0003u0018u00002u00020u0001Bu0007bu0002u00a2u0006u0002u0010u0002Ru000eu0010u0003u001au00020u0004Xu0082Tu00a2u0006u0002nu0000u00a8u0006u0005"}, d2 = {"Lcom/simplemobiletools/calendar/pro/models/Event$Companion;", "", "()V", "serialVersionUID", "", "calendar_debug"})
public static final class Companion {
private Companion() {
super();
}
}
}
I fixed kotlin version at current version and rebuild it. But there is not change anything. I search this errors and try their solutions. But didn't worked. And other problem I didn't any change in java file. Android Studio is saying "Files under the "build" folder are generated and should not be edited".
android android-studio kotlin android-gradle
android android-studio kotlin android-gradle
asked Nov 14 '18 at 20:08
Ayberk Ahmet
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
- I clone the project
- update kotlin
- rename keystore.properties_sample to keystore.properties
- run it.. and everything works fine.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53308024%2fhow-can-i-solve-this-problem-error-cannot-find-getter-for-field%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
- I clone the project
- update kotlin
- rename keystore.properties_sample to keystore.properties
- run it.. and everything works fine.
add a comment |
- I clone the project
- update kotlin
- rename keystore.properties_sample to keystore.properties
- run it.. and everything works fine.
add a comment |
- I clone the project
- update kotlin
- rename keystore.properties_sample to keystore.properties
- run it.. and everything works fine.
- I clone the project
- update kotlin
- rename keystore.properties_sample to keystore.properties
- run it.. and everything works fine.
answered Nov 17 '18 at 7:45
Mohamed Hamdan
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53308024%2fhow-can-i-solve-this-problem-error-cannot-find-getter-for-field%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown