Abhishek Singh February 2016

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.

Answers


RaGe February 2016

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')

Post Status

Asked in February 2016
Viewed 2,180 times
Voted 6
Answered 1 times

Search




Leave an answer