Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

AndroidManifest.xml file is not found | config-file preference is not set #336

Closed
doejon opened this issue Feb 12, 2018 · 4 comments
Closed

Comments

@doejon
Copy link

doejon commented Feb 12, 2018

Problem

Following the "Quick Start Guide" running on Ubuntu 17.10 produces:

cordova-hcp server
Running server
Checking:  /worklocal/dev/app/TestProject/www
local_url http://localhost:31284
Build 2018.02.12-19.43.12 created in /worklocal/dev/app/TestProject/www
cordova-hcp local server available at: http://localhost:31284
cordova-hcp public server available at: https://eeac8daa.ngrok.io
cordova run
Android Studio project detected
CHCP Local Development Add-on:
    Config-file is not set, local-development mode is enabled by default.
    Setting config-file to local server: https://eeac8daa.ngrok.io/chcp.json
Configuration file XXXX/TestProject/platforms/android/res/xml/config.xml not found
    AndroidManifest.xml file is not found! Can't increase build version for android.
CHCP plugin after prepare hook:
    config-file preference is not set.
{...}
Package name: com.example.testproject
INSTALL SUCCESS
LAUNCH SUCCESS

This does not seem to be correct since hot code reload is not working at all (emulator and device).

Steps to reproduce

Run commands listed on https://github.com/nordnet/cordova-hot-code-push --> Quick Start Guide

System info
cordova info
Collecting Data...


Node version: v8.4.0

Cordova version: 8.0.0

Config.xml file: 

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.testproject" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>TestProject</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="[email protected]" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <plugin name="cordova-hot-code-push-plugin" spec="^1.5.3" />
    <plugin name="cordova-hot-code-push-local-dev-addon" spec="^0.4.2" />
    <engine name="android" spec="^7.0.0" />
</widget>


Plugins: 

cordova-hot-code-push-local-dev-addon,cordova-hot-code-push-plugin,cordova-plugin-whitelist

Android platform:

*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Running /worklocal/android/tools/bin/avdmanager list target

Available Android targets:==============] 100% Fetch remote repository...       
----------
id: 1 or "android-26"
     Name: Android API 26
     Type: Platform
     API level: 26
     Revision: 2
----------
id: 2 or "android-27"
     Name: Android API 27
     Type: Platform
     API level: 27
     Revision: 1

Also, if plugin works on a clean project, but not on your actual app - please, add the list of the plugins you are using:
No additional plugins added;

@diogeneshamilton
Copy link

I am having the same issue.

@jaweii
Copy link

jaweii commented Apr 20, 2018

I solved it by change the android version:
cordova platform add [email protected]

@lgrignon
Copy link

Hello, any plan to fix this issue soon.
I think Cordova Android platform 7.x is widely used :/

@nordnet-deprecation-bot
Copy link
Contributor

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #371 for more information.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants