question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

6.0.0 failed to build with react-native 0.50.3

See original GitHub issue

I created a brand new project with react-native 0.50.3 and it built successfully, but after I added react-native-svg version 6.0.0, the project failed to compile

"dependencies": {
		"react": "16.0.0",
		"react-native": "0.50.3",
		"react-native-svg": "^6.0.0"
	}

error logs:

/home/daniel/mianjiajia/test/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
    
/home/daniel/mianjiajia/test/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
    
/home/daniel/mianjiajia/test/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/home/daniel/mianjiajia/test/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.


:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:19
  • Comments:12

github_iconTop GitHub Comments

23reactions
danieldaicommented, Nov 15, 2017

@msand I just found react-native-svg is using sdk 25

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.3'

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenLocal()
    jcenter()
    maven {
        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
        url "$projectDir/../../../node_modules/react-native/android"
    }
}

dependencies {
    compile "com.android.support:appcompat-v7:25.3.1"
    //noinspection GradleDynamicVersion
    compile 'com.facebook.react:react-native:+'
}
3reactions
obsidianartcommented, Dec 6, 2017

25 worked for me, but it doesn’t work on google pixel. I opened another ticket for it

Read more comments on GitHub >

github_iconTop Results From Across the Web

6.0.0 failed to build with react-native 0.50.3 · Issue #511 - GitHub
I created a brand new project with react-native 0.50.3 and it built successfully, but after I added react-native-svg version 6.0.0, ...
Read more >
JS server not recognized, continuing with build - Stack Overflow
Running command react-native run-android --port 8082 in second Command Prompt window. After error screen appear clicking Ctrl + M . Clicking Dev ...
Read more >
Troubleshooting - React Native
If you run into issue where executing npm run android on macOS throws the above error, try to run sudo chmod +x android/gradlew...
Read more >
Compare Packages Between Distributions - DistroWatch.com
aspell-cy 0.50.3 aspell-da 4.2 aspell-de 20161207.7.0 ... constant-defer 6.0.0 constantine-backgrounds 12.1.1.4 ... Dist-Zilla-Plugin-Test-Compile 2.58.0
Read more >
@react-native-community/netinfo - npm
React Native Network Info API for iOS & Android. ... react-native-windows 0.63 or newer; MSVC build tools v142 (included in Visual Studio ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found