Skip to content

“error: package android.support.v4.content does not exist” #1663

@renege

Description

@renege

Description of the problem:
When trying to build the SDK with Android Studio on Mac I get:
“error: package android.support.v4.content does not exist”

Affected platform

  • Android

OS of the development machine

  • macOS

Other information:
The build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        classpath 'com.google.gms:google-services:4.2.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Capacitor version:
1.0.0

node version:
v12.1.0
npm version:
6.9.0

CocoaPods version:
It's Android that's giving issues

Steps to reproduce:
Probably a bug in my system, so don't know how to reproduce it somewhere else.

Link to sample project:
Don't have it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions