简体   繁体   中英

Update gradle android studio

flutter_barcode_scanner\intermediates\packaged_res\debug\values-w???dp-v13: Error: Invalid resource directory name

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 30s
Exception: Gradle task assembleDebug failed with exit code 1

This message has been shown after I try to run my app in Android studio. how can I figure out where is the problem and resolve it.

Please try to flutter clean -> Invalidate Cache and Restart on android studio -> flutter pub get and also make sure you extend FlutterActivty:

Java: public class MainActivity extends FlutterActivity {}

Or for Kotlin: class MainActivity: FlutterActivity() {}

For more info see here .

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