我已经将android Eclipse项目导入了Android Studio。我的应用程序在 Android eclipse 中运行良好,但在 Android Studio 中显示以下错误:
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacomgooglezxingclientandroidDecodeHandler.java
Error:(99, 57) error: cannot find symbol method renderCroppedGreyscaleBitmap()
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacomgooglezxingclientandroidencodeQRCodeEncoder.java
Error:(303, 46) error: cannot find symbol method getURL()
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacomgooglezxingclientandroidresultAddressBookResultHandler.java
Error:(137, 33) error: cannot find symbol method getURL()
Error:(192, 36) error: cannot find symbol method getURL()
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacomgooglezxingclientandroidshareAppPickerActivity.java
Error:(66, 30) error: cannot find symbol variable BookmarkColumns
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacomgooglezxingclientandroidshareBookmarkPickerActivity.java
Error:(39, 14) error: cannot find symbol variable BookmarkColumns
Error:(40, 14) error: cannot find symbol variable BookmarkColumns
Error:(55, 48) error: cannot find symbol variable BOOKMARKS_URI
Error:(71, 30) error: cannot find symbol variable BookmarkColumns
Error:(72, 30) error: cannot find symbol variable BookmarkColumns
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacomgooglezxingclientandroidshareShareActivity.java
Error:(145, 58) error: cannot find symbol variable BookmarkColumns
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacommobileinvoicesignaturecscontrollerMapActivity.java
Error:(41, 31) error: cannot find symbol method getMap()
D:WorkingFolderMobileInvoiceSignatureCSappsrcmainjavacommobileinvoicesignaturecscontrollerThemes.java
Error:(113, 36) error: cannot find symbol class BaseAdapter
Error:(48, 13) error: no suitable method found for setAdapter(Themes.ThemeAdapter)
method AdapterView.setAdapter(ListAdapter) is not applicable
(argument mismatch; Themes.ThemeAdapter cannot be converted to ListAdapter)
method AbsListView.setAdapter(ListAdapter) is not applicable
(argument mismatch; Themes.ThemeAdapter cannot be converted to ListAdapter)
method GridView.setAdapter(ListAdapter) is not applicable
(argument mismatch; Themes.ThemeAdapter cannot be converted to [![enter image description here][1]][1]ListAdapter)
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
[1]: https://i.stack.imgur.com/uBGHN.png
在
build.gradle文件@应用程序级别中添加以下依赖项。
compile 'me.dm7.barcodescanner:zxing:1.9'
点击 同步 在工具->安卓->同步项目中与 gradle 文件.