我试图找到:gson,mockito,glide,picasso等.只能找到com.android.support:*.Android Studio 3.0.1和3.1 Canary 5在Studio 2中运行良好.
问:我该如何解决?
PS我知道如何手动添加它们.
请告诉我,为什么它不喜欢我的布局(RelativeLayout with @+id/row)?
当我将它与自己创建的适配器(layoutinflater)一起使用时,效果很好.还有一个.我计划在我的数据库中使用位图,存储方式如下byte[].SimpleCursorAdapter它本身可以将byte []日期转换为图像(ImageView),还是只能用于文本?
错误说明
android.content.res.Resources$NotFoundException: Resource ID #0x7f0c006c type #0x12 is not valid
Run Code Online (Sandbox Code Playgroud)
主要活动
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mListView = ( (ListView) findViewById (R.id.notes_listView) );
mNoteDb = new NoteDb (getApplicationContext ());
Cursor c = mNoteDb.getTitleColumn ();
SimpleCursorAdapter mAdapter = new SimpleCursorAdapter (getApplicationContext (),
R.id.row, // **<<< THIS ONE**
c, new String[]{NoteDb.MainTable.COLUMN_TITLE}, new int[]{R.id.title_text_row}, 0);
mListView.setAdapter (mAdapter);
Run Code Online (Sandbox Code Playgroud)
行布局
<RelativeLayout
android:id="@+id/row"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/date_row"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="10sp"
android:text="@string/main_row_tv_date" …Run Code Online (Sandbox Code Playgroud)