ricknout / lens-launcher

A unique, efficient way to browse and launch your apps
https://experiments.withgoogle.com/lens-launcher
Apache License 2.0
213 stars 61 forks source link

Is there any config require to run this source code? #26

Closed JVeverGiveUp closed 7 years ago

JVeverGiveUp commented 7 years ago

Dear devs, I import project to Android Studio, no issue but when I run. Force close occur immediately. Here are the log: FATAL EXCEPTION: main Process: nickrout.lenslauncher, PID: 10440 android.database.sqlite.SQLiteException: no such table: APP_PERSISTENT (code 1): , while compiling: SELECT FROM APP_PERSISTENT WHERE (M_IDENTIFIER = ? ) LIMIT 1 Error Code : 1 (SQLITE_ERROR)Caused By : SQL(query) error or missing database. (no such table: APP_PERSISTENT (code 1): , while compiling: SELECT FROM APP_PERSISTENT WHERE (M_IDENTIFIER = ? ) LIMIT 1) ... at nickrout.lenslauncher.model.AppPersistent.getAppVisibility(AppPersistent.java:129) at nickrout.lenslauncher.adapter.AppRecyclerAdapter$AppViewHolder.setAppElement(AppRecyclerAdapter.java:108) at nickrout.lenslauncher.adapter.AppRecyclerAdapter.onBindViewHolder(AppRecyclerAdapter.java:74)

crearo commented 7 years ago

This is because of SugarORM - a database lib we've used. Try to do the following:

JVeverGiveUp commented 7 years ago

Disable Instant run is okay to me. I doesn't need to update meta-data version. Thanks for your support!