包com.github.xinthink.rnmk.ReactMaterialKitPackage不存在React Native Android

时间:2019-07-05 10:24:47

标签: react-native react-native-android package.json

我正在使用来自'com.github.xinthink.rnmk.ReactMaterialKitPackage'的ReactMaterialKitPackage',我按照说明在我的项目中手动安装了它, https://github.com/xinthink/react-native-material-kit

但是我遇到以下错误,并且我的项目无法构建。

对不起,我已经包括了所有项目依赖项,以防万一。

我也尝试了以下方法

  • 本机链接
  • 删除了node_modules,并安装了npm来安装软件包。
  • 尝试清理并重建

不确定我还能做什么。您的建议会很有帮助

谢谢 R

(Interface Obj--Serviceimplementations.LoginRegistrationSerImpl@38635264)    

05-Jul-2019 02:52:58.387 INFO [http-nio-8084-exec-3] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml] `enter code here`
05-Jul-2019 02:52:58.564 INFO [http-nio-8084-exec-3] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization completed in 615 ms 
05-Jul-2019 02:52:58.709 INFO [http-nio-8084-exec-3] com.sun.faces.config.ConfigureListener.contextInitialized Initializing Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) for context '/matrimony' 
05-Jul-2019 02:52:58.993 INFO [http-nio-8084-exec-3] com.sun.faces.spi.InjectionProviderFactory.createInstance JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed. 
05-Jul-2019 02:53:00.211 INFO [http-nio-8084-exec-3] org.springframework.web.servlet.FrameworkServlet.initServletBean FrameworkServlet 'dispatcher': initialization started 
05-Jul-2019 02:53:00.222 INFO [http-nio-8084-exec-3] org.springframework.context.support.AbstractApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jul 05 02:53:00 IST 2019]; parent: Root WebApplicationContext 
05-Jul-2019 02:53:00.224 INFO [http-nio-8084-exec-3] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/springConf/newSpringXMLConfig.xml] 

////////.......................Interface Obj--Serviceimplementations.LoginRegistrationSerImpl@38635264 .........../////////////////////////


05-Jul-2019 02:53:01.239 INFO [http-nio-8084-exec-3] org.springframework.web.servlet.FrameworkServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 1028 ms 
05-Jul-2019 02:53:01.242 INFO [http-nio-8084-exec-3] org.apache.catalina.core.StandardContext.reload Reloading Context with name [/matrimony] is completed


AFTER CLICKING THE REGISTER BUTTON:(IT BECOMES NULL)


05-Jul-2019 02:53:01.242 INFO [http-nio-8084-exec-3] org.apache.catalina.core.StandardContext.reload Reloading Context with name [/matrimony] is completed 

//............Interface Obj--null.............//


-------------------------------------

MainApplication.java

  > Task :app:compileDebugJavaWithJavac FAILED
C:\Development\XXXX-Retail-ReactNative\retail-native-app\android\app\src\main\java\com\retailnativeapp\MainApplication.java:6: error: package com.github.xinthink.rnmk does not exist
import com.github.xinthink.rnmk.ReactMaterialKitPackage;
                               ^
C:\Development\XXXX-Retail-ReactNative\retail-native-app\android\app\src\main\java\com\retailnativeapp\MainApplication.java:8: error: package com.ismaeld.RNBuildConfig
does not exist
import com.ismaeld.RNBuildConfig.RNBuildConfigPackage;
                                ^
C:\Development\XXXX-Retail-ReactNative\retail-native-app\android\app\src\main\java\com\retailnativeapp\MainApplication.java:39: error: cannot find symbol
            new ReactMaterialKitPackage(),
                ^
  symbol: class ReactMaterialKitPackage
C:\Development\XXXX-Retail-ReactNative\retail-native-app\android\app\src\main\java\com\retailnativeapp\MainApplication.java:41: error: cannot find symbol
            new RNBuildConfigPackage(BuildConfig.class),
                ^
  symbol: class RNBuildConfigPackage
4 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.8/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 31s
212 actionable tasks: 203 executed, 9 up-to-date

package.json。

import com.facebook.react.ReactApplication;
import com.github.xinthink.rnmk.ReactMaterialKitPackage;
import io.invertase.firebase.RNFirebasePackage;
import com.ismaeld.RNBuildConfig.RNBuildConfigPackage;
import io.invertase.firebase.RNFirebasePackage;
import io.invertase.firebase.fabric.crashlytics.RNFirebaseCrashlyticsPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.babisoft.ReactNativeLocalization.ReactNativeLocalizationPackage;
import io.realm.react.RealmReactPackage; 
import com.oblador.keychain.KeychainPackage;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import br.com.classapp.RNSensitiveInfo.RNSensitiveInfoPackage; 
import com.rnfs.RNFSPackage; 

 @Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new ReactMaterialKitPackage(),
        new RNFirebasePackage(),
        new RNBuildConfigPackage(BuildConfig.class),
        new RNFirebasePackage(),
        new RNFSPackage(),
        new VectorIconsPackage(),
        new ReactNativeLocalizationPackage(),
        new RealmReactPackage(),
        new KeychainPackage(),
        new RNDeviceInfo(),
        new RNSensitiveInfoPackage(),
        new RNFirebaseCrashlyticsPackage()
        //new RNSecureKeyStorePackage()
  );
}

}

build.gradle / app

"dependencies": {
"create-react-class": "^15.6.3",
"crypto-js": "^3.1.9-1",
"hex-to-binary": "^1.0.1",
"moment": "^2.22.2",
"react": "^16.4.1",
"react-native": "~0.55.4",
"react-native-build-config": "0.0.1",
"react-native-device-info": "2.1.2",
"react-native-firebase": "^5.5.3",
"react-native-floating-labels": "^1.1.9",
"react-native-fs": "^2.12.1",
"react-native-keychain": "^3.1.3",
"react-native-localization": "^2.1.2",
"react-native-looped-carousel": "^0.1.13",
"react-native-material-kit": "^0.5.1",
"react-native-phone-call": "^1.0.8",
"react-native-pin-view": "^2.1.0",
"react-native-responsive-screen": "^1.2.2",
"react-native-sensitive-info": "5.2.6",
"react-native-vector-icons": "6.5.0",
"react-navigation": "^2.1.0",
"realm": "^2.12.0",
"utf8": "^3.0.0"

}

settings.gradle。

dependencies {
compile project(':react-native-vector-icons')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:28.0.0"
compile "com.android.support:support-media-compat:28.0.0"
compile "com.android.support:support-v4:28.0.0"
compile "com.facebook.react:react-native:+"  // From node_modules
compile project(':react-native-localization')
compile project(':realm')
compile project(':react-native-keychain')
compile project(':react-native-device-info')
compile project(':react-native-sensitive-info')
compile project(':react-native-fs')
compile project(':RNMaterialKit')
compile project(':react-native-build-config')
implementation project(':react-native-firebase')
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
//compile project(':react-native-secure-key-store')

0 个答案:

没有答案