React-Native笔记--Unable to find a matching variant of project

Could not resolve project :react-native-vector-icons.
     Required by:
         project :app
      > Unable to find a matching variant of project :react-native-vector-icons:
          - Variant 'debugApiElements' capability android:react-native-vector-icons:unspecified:
              - Incompatible attribute:
                  - Required com.android.build.api.attributes.BuildTypeAttr 'beta' and found incompatible value 'debug'.
              - Other attributes:
                  - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
                  - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
                  - Required org.gradle.usage 'java-api' and found compatible value 'java-api'.
> Could not resolve project :react-native-video.
     Required by:
         project :app
      > Unable to find a matching variant of project :react-native-video:
          - Variant 'debugApiElements' capability android:react-native-video:unspecified:
              - Incompatible attribute:
                  - Required com.android.build.api.attributes.BuildTypeAttr 'beta' and found incompatible value 'debug'.
  ould not resolve project :react-native-webview.
     Required by:
         project :app
      > Cannot choose between the following variants of project :react-native-webview:
          - debugAndroidTestCompile
          - debugAndroidTestCompileOnly
          - debugAndroidTestRuntime
          - debugRuntime
          - debugUnitTestCompile
          - debugUnitTestCompileOnly
          - debugUnitTestRuntime
          - releaseRuntime
          - releaseUnitTestCompile
          - releaseUnitTestCompileOnly
          - releaseUnitTestRuntime
        All of them match the consumer attributes:
          - Variant 'debugAndroidTestCompile' capability android:react-native-webview:unspecified:
              - Unmatched attributes:
			   - Required com.android.build.api.attributes.BuildTypeAttr 'beta' but no value provided.
                  - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but no value provided.
                  - Required org.gradle.usage 'java-api' but no value provided.

出现这种异常说明你android项目中app/gradle 的依赖还没过,解决方案:检查你所要打包的配置,在其中加上如下:

beta {
		...	
            matchingFallbacks = ['release', 'debug']
        ...
        }

 

你可能感兴趣的:(android,前端学习)