小编Did*_*ver的帖子

这是一个意外错误。请提交包含idea.log文件的错误

无法加载类“javax.xml.bind.JAXBException”。

花了很多时间来解决这个错误,但我不明白,当我运行应用程序时,我在 android studio 中的代码有什么问题

**任务 ':app:compileDebugJavaWithJavac' 执行失败。

javax/xml/bind/JAXBException**

如果你有答案,请告诉我

java performance android developer-tools android-studio

14
推荐指数
2
解决办法
1万
查看次数

将现有 JAR 或 AAR 作为新项目模块导入

如何在A new Android Studio Arctic Fox中将 JAR 或 AAR 包作为新项目模块导入 | 2020.3.1 金丝雀 9 号

请让我知道。

sdk android github android-studio android-developer-api

7
推荐指数
1
解决办法
745
查看次数

远程: *****newuser.git 的权限被拒绝给 *****1stusername

在 Visual Studio 代码中

我为此花费了更多时间,我正在尝试将来自第一个帐户 github 的已删除项目推送到 新的另一个帐户中的现有存储库中,但我收到如下错误:

$ git push -u origin main
remote: Permission to username/project_name.git denied to first_account_username.
fatal: unable to access 'https://github.com/user_name/project_name.git/': The requested URL returned error: 403 
Run Code Online (Sandbox Code Playgroud)

我尝试使用这些命令行将现有存储库推送到新帐户中,请让我知道我错过了什么?

git remote add origin https://github.com/user_name/project_name.git
git branch -M main
git push -u origin main
Run Code Online (Sandbox Code Playgroud)

github git-push git-remote

5
推荐指数
1
解决办法
1万
查看次数

没有为类型“BuildContext”定义方法“read”。?

    class MyLoginButton extends StatelessWidget {
      final int loginTag;
      final Stream<User> stream;
    
      const MyLoginButton({Key? key, required this.loginTag, required this.stream})
          : super(key: key);
    
      @override
      Widget build(BuildContext context) {
        return GestureDetector(
          onTap: () {
            Navigator.of(context).pop();
          },
          child: Padding(
            padding: const EdgeInsets.all(smallPadding),
            child: StreamBuilder<User>(
                stream: stream,
                builder: (context, snapshot) {
                  /// this is test mode without firebase auth
                  if (context.read(loginModeProvider).state) {
                    SchedulerBinding.instance!
                        .addPostFrameCallback((timeStamp) async {
                      /// mock loading
                      await Future<void>.delayed(const Duration(seconds: 1));
                      await Navigator.pushReplacement(
                          context,
                          MyLoadingRoute<void>(
                              duration: Duration(milliseconds: 500),
                              builder: (context) => MainPage(
                                    heroTag: …
Run Code Online (Sandbox Code Playgroud)

flutter flutter-layout

4
推荐指数
1
解决办法
2577
查看次数

错误:找不到成员:'ImageCropper.cropImage'

**我花了一晚上的时间尝试裁剪图像,需要一些帮助**

  image_cropper: ^1.5.0 # Used to Crop/Rotate Selected images from user's device
Run Code Online (Sandbox Code Playgroud)

///错误

错误:找不到成员:“ImageCropper.cropImage”。最终croppedImage =等待ImageCropper.cropImage(

///图像源

class ImageSourceSheet extends StatelessWidget {
  // Constructor
  ImageSourceSheet({required this.onImageSelected});

  // Callback function to return image file
  final Function(File?) onImageSelected;
  // ImagePicker instance
  final picker = ImagePicker();

  Future<void> selectedImage(BuildContext context, File? image) async {
    // init i18n
    final i18n = AppLocalizations.of(context);

    // Check file
    if (image != null) {
      final croppedImage = await ImageCropper.cropImage(
          sourcePath: image.path,
          aspectRatioPresets: [CropAspectRatioPreset.square],
          maxWidth: 400,
          maxHeight: 400,
          androidUiSettings: AndroidUiSettings(
            toolbarTitle: …
Run Code Online (Sandbox Code Playgroud)

flutter flutter-dependencies flutter-layout flutter-web

0
推荐指数
1
解决办法
3969
查看次数