I get an error when I'm trying to compile path_provider:
/home/user/projects/flutterframework/TestApp/android/app/src/main/java/io/flutter/plugins/PluginRegistry.java:15:
error: cannot find symbol
path_provider = PathProviderPlugin.register(activity);
symbol: method register(FlutterActivity)
location: class PathProviderPlugin
1 error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
How can I fix it? Lubuntu 16 LTS x64
It sounds like you have an old project template. You shouldn't have a PluginRegistry.java. Try flutter upgrade, recreate your project and copy the old project's dart files and assets over.
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.