简体   繁体   中英

java.lang.NoClassDefFoundError: java.awt.Cursor

I know that this question was asked many times before, but I just can't find the right answer for my problem.

I am using Cursor for taking a picture from my Gallery and save it into my ImageView. When I write Cursor into my class and the error pops up I choose Fix project setup and then select JRE System Library[jre.8.0_45] to build path and the error is gone. When I click the image from Gallery and it crashes with java.lang.NoClassDefFoundError: java.awt.Cursor .

I've checked my dependencies and everything is selected. I don't know what to do.

Try using the import import android.database.Cursor; instead

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM