Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem occurred evaluating root project 'android'. #374

Closed
jay3dec opened this issue Oct 18, 2014 · 9 comments
Closed

A problem occurred evaluating root project 'android'. #374

jay3dec opened this issue Oct 18, 2014 · 9 comments

Comments

@jay3dec
Copy link

jay3dec commented Oct 18, 2014

On running cca emulate android ..... here is what I'm getting

cca v0.4.1
Running command: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run --emulator
WARNING : no emulator specified, defaulting to myAvd
Waiting for emulator...
emulator: emulator window was out of view and was recentered

Booting up emulator (this may take a while).......................BOOT COMPLETE

FAILURE: Build failed with an exception.

* Where:
Build file '/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle' line: 175

* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.074 secs

/home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: /home/jay/HelloChromeAppOnAndroid/platforms/android/gradlew with args: assembleArmv7Debug,-b,/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-x,lint,-x,lintVitalX86Release,-x,lintVitalArmv7Release,-x,compileLint,-x,copyReleaseLint,-x,copyDebugLint
Error: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run: Command failed with exit code 8
    at ChildProcess.whenDone (/home/jay/.nvm/v0.10.32/lib/node_modules/cca/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
@agrieve
Copy link
Member

agrieve commented Oct 20, 2014

FYI - @clelland

Looks like the issue is that it can't extract the versionCode from your AndroidManifest.xml. This should be getting set by cca... Could you check:

  1. That you have a version set in your manifest.json
  2. That after a prepare, it is being set in your platforms/android/AndroidManifest.xml

@jay3dec
Copy link
Author

jay3dec commented Oct 21, 2014

@agrieve
Here is my manifest.json

{
  "manifest_version": 2,
  "name": "My first app",
  "version": "1",
  "app": {
    "background": {
      "scripts": ["main.js"]
    }
  }
}

And here is the AndroidManifest.xml

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="NaN" android:versionName="1" package="com.your.company.Myfirstapp" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="Myfirstapp" android:theme="@android:style/Theme.Translucent" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="@string/launcher_name">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>

@agrieve
Copy link
Member

agrieve commented Oct 22, 2014

Awesome! Thanks! Was able to make a fix.

@developer0017
Copy link

Error: /Volumes/Working/Development/Cordova/plugin/opcv/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Build file '/Volumes/Working/Development/Cordova/plugin/opcv/platforms/android/build.gradle' line: 253

  • What went wrong:
    A problem occurred evaluating root project 'android'.

    Project with path ':androidOpenCVExample' could not be found in root project 'android'.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I got this error. would you please resolve this issue for me?

@SadiqUltra
Copy link

sudo chmod 777 ~/.android
worked for me!

@mxlqgg
Copy link

mxlqgg commented Nov 10, 2016

HGHG

@siner01
Copy link

siner01 commented Nov 29, 2016

Error:(1, 1) A problem occurred evaluating root project 'app'.

Plugin with id 'com.android.application' not found.

@doyouheat
Copy link

Error:(14, 1) A problem occurred evaluating project ':app'.

Cannot invoke method signingConfigs() on null object

@kirthanshetty
Copy link

Hi i am getting below error please help me
Evaluating project ':app' using build file '/home/ubuntu/clarks-select-android/app/build.gradle'.

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/ubuntu/clarks-select-android/app/build.gradle' line: 10

  • What went wrong:
    A problem occurred evaluating project ':app'.

org/gradle/initialization/BuildCompletionListener

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants