我按照安装说明安装了这个库(https://github.com/stefalda/ReactNativeLocalization)
npm install react-native-localization --save
react-native link react-native-localization
Run Code Online (Sandbox Code Playgroud)
我不想再使用它了。我已经尝试了以下步骤将其从我的项目中删除:
npm unlink react-native-localization
npm uninstall react-native-localization --save
Run Code Online (Sandbox Code Playgroud)
我试着跑
react-native unlink react-native-localization
Run Code Online (Sandbox Code Playgroud)
但是,我收到错误消息 react-native-localization is not a react-native library.
当我运行时react-native run-android,出现以下错误:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve project :react-native-localization.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-localization:
- None of the consumable configurations have attributes.
Run Code Online (Sandbox Code Playgroud) 我需要使用 Maven(用于学校项目)从单个 Maven 命令创建可执行文件。我从未使用过 Maven,并在 stackoverlow 上尝试了许多解决方案。该解决方案创建了一个 jar 文件,但该文件从未打开。
这是我的项目结构
src
com
project
code
swing
programm
interface
Main.class
Run Code Online (Sandbox Code Playgroud)
我知道这不是 Maven 约定,但是现在更改它意味着我必须调整大约 40 个类的导入(因为 intelliJ 不会完美地重构所有内容)。
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>MyGroup</groupId>
<artifactId>myProgramm</artifactId>
<version>0.7-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Hello World</name>
<description>Course Project</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc -->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.25.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.junit/junit5-engine -->
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit5-engine</artifactId>
<version>5.0.0-ALPHA</version>
</dependency>
</dependencies>
<build>
</build>
Run Code Online (Sandbox Code Playgroud)
我必须在里面放入什么才能生成可执行文件?