This is a migrated thread and some comments may be shown as answers.

Enable to build for Android

2 Answers 110 Views
Android Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pierre
Top achievements
Rank 1
Pierre asked on 25 Jul 2017, 08:46 AM

Hello,

 

I'm trying to recompilate my old apps (cordova 2.7.0 to 6.4.0). In the simulatir it works fine but when I try t build it to test it on Android device, build failed everytime: 

Build failed during execution N/A Gerermacopro 0 0 C# N/A
'Build failed with error code 2' N/A Gerermacopro 0 0 C# N/A
'Build failed with error code 2' N/A Gerermacopro 0 0 C# N/A

 

In log :

 

[2017-07-25 10:30:11.080] Log (Info,None): Project "Gerermacopro.tmp.proj" (default targets):
android Build Tooling revision 2017.06.21.4r
Build Tooling Hostname 7919f902d575
Warning: Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Warning: Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Warning: /mnt/storage/builds/RQmAbu9NQydnAyXWn1/app/AndroidManifest.xml:25:13-30 Error:
Warning: Missing one of the key attributes 'action#name,category#name' on element intent-filter at AndroidManifest.xml:25:13-30
/mnt/storage/builds/RQmAbu9NQydnAyXWn1/app/AndroidManifest.xml Error:
Validation failed, exiting
Warning: FAILURE:
Warning: Build failed with an exception.

* What went wrong:
Warning: Execution failed for task ':processDebugManifest'.
Warning: > Manifest merger failed with multiple errors, see logs
Warning: * Try:
Warning: Run with --stacktrace option to get the stack trace. Run with
Warning: --info or --debug option to get more log output.
Warning: Error: /mnt/storage/builds/RQmAbu9NQydnAyXWn1/app/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/mnt/storage/builds/RQmAbu9NQydnAyXWn1/app/AndroidManifest.xml:25:13-30 Error:
Missing one of the key attributes 'action#name,category#name' on element intent-filter at AndroidManifest.xml:25:13-30
/mnt/storage/builds/RQmAbu9NQydnAyXWn1/app/AndroidManifest.xml Error:
Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/mnt/storage/builds/RQmAbu9NQydnAyXWn1/app/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:852:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
Error: Build failed during execution
Error: 'Build failed with error code 2'
Error: 'Build failed with error code 2'
Done building project "Gerermacopro.tmp.proj" -- FAILED.

 

Do you have any idea about what I have to do ? 

 

This is my manifest :

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="$AndroidVersionCode$"
          android:versionName="$BundleVersion$"
          package="$AppIdentifier$"
          android:windowSoftInputMode="adjustPan"
          android:hardwareAccelerated="$AndroidHardwareAcceleration$"
          xmlns:android="http://schemas.android.com/apk/res/android" >
    <supports-screens
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true"
        android:resizeable="true"
        android:anyDensity="true"
        />

    <application android:label="@string/app_name"
                 android:icon="@drawable/icon"
                 android:hardwareAccelerated="$AndroidHardwareAcceleration$">
        <activity android:label="@string/app_name"
                  android:name=".TelerikCallbackActivity"
                  android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
                  android:launchMode="singleTop"
                  android:theme="@android:style/Theme.Black.NoTitleBar" >
            <intent-filter>
                <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="21"/>
</manifest>

 

 

Hope you could help me...best regards

Audrey

2 Answers, 1 is accepted

Sort by
0
Garo
Telerik team
answered on 27 Jul 2017, 09:15 AM
Hello Pierre,

I believe this issue was resolved in the separate support ticket that you have opened. Please, correct me if this is not the case and you required additional assistance on this matter. 

Regards,
Garo
Progress Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Pierre
Top achievements
Rank 1
answered on 27 Jul 2017, 09:32 AM

Yes, it is. 

 

For the ones who could have the same problem, it came from a plugin, so I just removed it !

Tags
Android Devices
Asked by
Pierre
Top achievements
Rank 1
Answers by
Garo
Telerik team
Pierre
Top achievements
Rank 1
Share this question
or