Abhishek Singh
Abhishek Singh

Reputation: 425

Cannot convert URL "..jks" to a file android

I am having hard time solving this error. Basically I imported muPDF source code from github which gave me this bug. Here is the build.gradle and the error:

build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-beta2'

    }

}


allprojects {
    repositories {
        jcenter()
    }

}

Error:(6, 0) Cannot convert URL 'D:/Projects/PDF/Mupdf/mupdf_release_key.jks' to a file.

I am using Mac not windows so the addresspath is incorrect. I am working on a project which requires this. Please help me with this bug. I have checked almost all related questions and nothing seems to work for me.

Upvotes: 4

Views: 11301

Answers (2)

Change this D:/Projects/PDF/Mupdf/mupdf_release_key.jks

to

clovis@Cloviss-MacBook-Pro/Projects/PDF/Mupdf/mupdf_release_key.jks

This clovis@Cloviss-MacBook-Pro is the first entry you see when you open your terminal

Upvotes: -1

RaGe
RaGe

Reputation: 23775

Change these paths in build.gradle to correct file on your filesystem:

Line 6

storeFile file('D:/Projects/PDF/Mupdf/mupdf_release_key.jks')

Line 11

storeFile file('D:/Projects/PDF/Mupdf/mupdf_release_key.jks')

Upvotes: 6

Related Questions