ZaraclaJ / audio_recorder

Other
180 stars 127 forks source link

Exception miss kotlin files #46

Closed alevittoria closed 4 years ago

alevittoria commented 4 years ago

Hello, when i try to import the library audio_recorder I receive this error:

Couldn't read file LocalFile: 'C:\Devel\flutter.pub-cache\hosted\pub.dartlang.org\audio_recorder-1.0.1\android\src\main\kotlin\com\jordanalcaraz\audiorecorder\audiorecorder\AudioRecorderPlugin.kt' even though it exists. Please verify that this file has read permission and try again.

I don't know why it is searching for kotlin files and not java but the result it's I'm not able to use it

DyaryRaoof commented 4 years ago

having the same issue

ghost commented 4 years ago

Seems like this is related to the latest updates of Flutter. Happened to me right after updating to v1.12.13+hotfix.5 stable, but has been reported in v1.11.0: https://stackoverflow.com/questions/59122719/flutter-issues-after-flutter-upgrade-to-flutter-1-11-0-mac-os

DyaryRaoof commented 4 years ago

I am on the master branch. This error appears in iOS. To solve it you need to locate your audio_recorder plugin inside flutter. then change the name of it's last child folder on android. You have to change it from audio_recorder to audiorecorder(remove the underscore).

ghost commented 4 years ago

Very weird. Perhaps this commit is related: https://github.com/ZaraclaJ/audio_recorder/commit/1039568f4f3c9deb2901fb877afede5898ce78d3

xizhouhezai commented 4 years ago

I had the same problem after I upgraded flutter

JCPradelPH commented 4 years ago

I am having the same issue after upgrading flutter to 1.12.13. Is there already a fix?

AliAnilKocak commented 4 years ago

I have the same problem. Flutter works correctly in version 1.9

git checkout v1.9.1
flutter doctor

Fix https://github.com/ZaraclaJ/audio_recorder/issues/46#issuecomment-568181851

fabianogadenz commented 4 years ago

@DyaryRaoof solved my problem. thanks

junddao commented 4 years ago

change the folder name from 'C:\src\flutter.pub-cache\hosted\pub.dartlang.org\audio_recorder-1.0.1\android\src\main\java\com\jordanalcaraz\audiorecorder\audio_recorder' to 'C:\src\flutter.pub-cache\hosted\pub.dartlang.org\audio_recorder-1.0.1\android\src\main\java\com\jordanalcaraz\audiorecorder\audiorecorder'

---- audio_rocorder => audiorecorder

cavanlee commented 4 years ago

@Junddao solved this issue.

lpreimesberger commented 4 years ago

thanks @Junddao - stable and dev flutter don't like the underscore name - seems to affect a bunch of components. :-(