#1 2016-02-04 16:58:07

edunt
Member
Registered: 2015-12-21
Posts: 258

No *.APK File Generated - release-android, Debug-android etc.

Hi,

After installed new update and ran my project with the expectation of getting ..../Build/output folder. But no output folder created.

Though I got error message on the cmd when building the files.

What could cause the issue?

Offline

#2 2016-02-04 17:01:37

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: No *.APK File Generated - release-android, Debug-android etc.

Hello edunt,

The latest releases touch a bit the Javascript core with enhancements to the Gauge control. This means you must delete the "_Compiled" directory by yourself. However, this is not apparently your problem, so, please, post here the error message you get to try to help you.

Offline

#3 2016-02-04 17:14:26

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: No *.APK File Generated - release-android, Debug-android etc.

Hi,
This is it.

Adding android project...
Running command: cmd "/s /c "C:\Users\Mypc\.cordova\lib\npm_cache\cordova-android\4.1.1\package\bin\create.bat "C:\Users\Mypc\Desktop\New folder\Learn Suomea_Compiled\platforms\android" com.afritelly.learnsuomea "Learn Suomea" --cli""
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: com.afritelly.learnsuomea
        Name: Learn Suomea
        Activity: MainActivity
        Android target: android-22
Copying template files...
Android project created with cordova-android@4.1.1
Fetching plugin "cordova-plugin-whitelist" via npm
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

Fetching plugin "cordova-plugin-network-information" via npm
Installing "cordova-plugin-network-information" for android
Fetching plugin "cordova-plugin-admobpro" via npm
Installing "cordova-plugin-admobpro" for android
Fetching plugin "cordova-plugin-extension" via npm
Installing "cordova-plugin-extension" for android
Running command: cmd "/s /c ""C:\Users\Mypc\Desktop\New folder\Learn Suomea_Compiled\platforms\android\cordova\build.bat" --release""
ANDROID_HOME=C:\adt-bundle-windows-x86_64-20140702\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_65
Running: C:\Users\Mypc\Desktop\New folder\Learn Suomea_Compiled\platforms\android\gradlew cdvBuildRelease -b C:\Users\Mypc\Desktop\New folder\Learn Suomea_Compiled\platforms\android\build.gradle -Dorg.gradle.daemon=true

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches com.google.android.gms:play-services-ads:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/goog … tadata.xml
         https://repo1.maven.org/maven2/com/goog … vices-ads/
     Required by:
         :android:unspecified

* 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: 6.87 secs

C:\Users\Mypc\Desktop\New folder\Learn Suomea_Compiled\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                    ^
Error code 1 for command: cmd with args: /s /c ""C:\Users\Mypc\Desktop\New folder\Learn Suomea_Compiled\platforms\android\gradlew" cdvBuildRelease -b "C:\Users\Mypc\Desktop\New folder\Learn Suomea_Compiled\platforms\android\build.gradle" -Dorg.gra
dle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
Press any key to continue . . .

Thanks.

Last edited by edunt (2016-02-04 17:30:03)

Offline

#4 2016-02-04 17:23:15

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: No *.APK File Generated - release-android, Debug-android etc.

Hello,

Take a look at the Android SDK manager and look the below "Extras" are installed:

e5mQ89o.png

Offline

#5 2016-02-05 11:12:30

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: No *.APK File Generated - release-android, Debug-android etc.

Hi David,

Thanks it is working now.

Why do I need to installed those extras?

Offline

#6 2016-02-05 19:01:06

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: No *.APK File Generated - release-android, Debug-android etc.

Hello edunt,

We need such extras if we want to deal with the AdMob plugin, for example.

Offline

#7 2016-02-06 02:09:05

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: No *.APK File Generated - release-android, Debug-android etc.

Ah, ok. Now I know.
Thanks

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.