I can't seemed to generate the APK. and this pops up!
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
Could not create service of type FileHasher using BuildSessionScopeServices.createFileSnapshotter().
Please assist.
Which is your global java version?
Put some more information. Ionic info output and Android Studio version.
Try to downgrade your java version to 8
if you do not know how to change your java version, google it!
Related
Gradle Error
I am facing the above error in Android Studio since a lot of time and I am unable to generate an App. I have update the Gradle version manually from the editor as you can see in the image below
Gradle version I upgraded manually but still it says to generate a signed apk you must update your Gradle version to 3.2.0 or higher. PLEASE SOMEONE HELP ME...
I have tried anything but nothing works for me
I'm using cordova-plugin-crosswalk-webview-v3 to create android app with a build-in browser as standard webview in my app.
Cordova can create very simple a android app without any problem. As I added crosswalk (latest version) in cordova, my export are in 2 versions: arm64 and x86_64.
The problem is I cannot install both created apps on my android-device or emulator of android-studio.
I have 2 kind of errors:
first:
after importing the .apk in android-studio : .*so missing
second
after try to running app: INSTALL_FAILED_NO_MATCHING_ABIS
can somebody help me to solve this problem? I also read some issues on github of crosswalk, but they are not interested to replay their issues.
Thank you for your help!
The solution is to set android-minSdkVersion in config.xml to the latest version, like 28. Also just add this code in your config.xml and build the app via cordova build android again:
<preference name="android-minSdkVersion" value="28" />
After that there is a new apk-output, which names debug.apk. This apk is universal and can run on any devices.
Before i start, i will warn you guys that im not an app developer and that i did not code this app, and that i have no expirience with apache cordova.
So i'm using apache cordova in visual studio 2013 and i'm here trying to get the release .apk but when i try to run a release build on a device i get the following error.
"Android packages must be signed when debugging using the Release or Distribution configurations." I've been googling solutions to this but i could not find any, though i did find that i need to change several things to get the .apk file i want.
So the first step would be making a keystore for the app right? Well, i have no clue on how to do this, and all the answers i found where using the cordova cli which i don't even know how to open. Can anyone tell me what a keystore is and how do i get it. If i need to use the cordova cli how do i open it.
After this, what should i do?
I'm trying to play with new phonegap-cli main focus is to setup wp8 platform
and when running command:
phonegap build wp8
It tries to use PhoneGap Build, which I presume happens because it hasn't found
my installed SDK in any path.
I tried to test my thesis and ran this command:
phonegap local build wp8
And it returns this error:
I have .NET Framework v4.0 installed, so this path exists:
C:\Windows\Microsoft.NET\Framework\v4.0.30319
So the only thing I think happens is that phonegap can't find where SDK is installed,
so I have been searching through the documentation and I couldn't find anything regarding which Environment Variable PhoneGap checks.
So I would really appreciate any kind of help here.
Please make sure that you have added the framework path to the system PATH variable.
In my case it was the above reason and also related to Ant installed and configuration.
Alternatively you can use phonegap's online build service:
https://build.phonegap.com/
It works like a charm and is free for 1 private project.
I have installed phonegap on MAC and installed Xcode 3.1. then open codex and create new project and built and ruis target might include its own product. build failed. give me a solution to this
Do you have a provisioning profile installed on the iPhone you are trying to run it on? For me it sounds you don't have the signing correctly.