transistorsoft / cordova-background-geolocation-SampleApp

Cordova Background Geolocation Sample Application
https://www.transistorsoft.com/shop/products/cordova-background-geolocation
MIT License
122 stars 78 forks source link

I can't build #106

Closed ramzanucar closed 6 years ago

ramzanucar commented 6 years ago

I'm using ionic 2 and cordova-plugin-mauron85-background-geolocation plugin. It's my error.

:compileDebugShaders :generateDebugAssets :mergeDebugAssets :generateDebugResValues UP-TO-DATE :generateDebugResources :mergeDebugResources :processDebugManifest 1>MSBUILD : cordova-build error : C:\Users\Necati\Desktop\myapp\platforms\android\build\intermediates\manifests\full\debug\AndroidManifest.xml:43: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'

:processDebugResources FAILED

BUILD FAILED

Total time: 14.487 secs 1>MSBUILD : cordova-build error : FAILURE: Build failed with an exception. 1>MSBUILD : cordova-build error : What went wrong: 1>MSBUILD : cordova-build error : Execution failed for task ':processDebugResources'. 1>MSBUILD : cordova-build error : > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Necati\AppData\Local\Android\sdk\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1 1>MSBUILD : cordova-build error : Try: 1>MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Command finished with error code 1: cmd /s /c "C:\Users\Necati\Desktop\myapp\platforms\android\gradlew.bat cdvBuildDebug -b C:\Users\Necati\Desktop\myapp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" MSBUILD : cordova-build warning : Note: Some input files use or override a deprecated API. MSBUILD : cordova-build warning : Note: Recompile with -Xlint:deprecation for details. 1>MSBUILD : cordova-build error : Error: cmd: Command failed with exit code 1 Error output: MSBUILD : cordova-build warning : Note: Some input files use or override a deprecated API. MSBUILD : cordova-build warning : Note: Recompile with -Xlint:deprecation for details.

1>MSBUILD : cordova-build error : C:\Users\Necati\Desktop\myapp\platforms\android\build\intermediates\manifests\full\debug\AndroidManifest.xml:43: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android' 1>MSBUILD : cordova-build error : FAILURE: Build failed with an exception. 1>MSBUILD : cordova-build error : What went wrong: 1>MSBUILD : cordova-build error : Execution failed for task ':processDebugResources'. 1>MSBUILD : cordova-build error : > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Necati\AppData\Local\Android\sdk\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1 1>MSBUILD : cordova-build error : Try: 1>MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 1>MSBUILD : cordova-build error : Picked up _JAVA_OPTIONS: -Xmx512M 1>Done building project "MyApp.jsproj" -- FAILED. ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

and here is C:\Users\Necati\Desktop\myapp\platforms\android\build\intermediates\manifests\full\debug\AndroidManifest.xml if you need.

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.ionic.starter" android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" >

<uses-sdk
    android:minSdkVersion="19"
    android:targetSdkVersion="23" />

<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_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<uses-feature android:name="android.hardware.location.gps" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />
<uses-feature android:name="android.hardware.location" />

<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.hardware.location" />

<application
    android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
    android:hardwareAccelerated="true"
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:supportsRtl="true" >
    <activity
        android:name="io.ionic.starter.MainActivity"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
        android:label="@string/activity_name"
        android:launchMode="singleTop"
        android:theme="@android:style/Theme.DeviceDefault.NoActionBar"
        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>

    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="AIzaSyCtZ5ex2hDKyfmKK8LY50qCi1ep3MJ68J0" />
    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

    <service
        android:name="com.marianhello.bgloc.sync.SyncService"
        android:exported="true"
        android:process=":sync" >
        <intent-filter>
            <action android:name="android.content.SyncAdapter" />
        </intent-filter>

        <meta-data
            android:name="android.content.SyncAdapter"
            android:resource="@xml/syncadapter" />
    </service>
    <service android:name="com.marianhello.bgloc.sync.AuthenticatorService" >
        <intent-filter>
            <action android:name="android.accounts.AccountAuthenticator" />
        </intent-filter>

        <meta-data
            android:name="android.accounts.AccountAuthenticator"
            android:resource="@xml/authenticator" />
    </service>

    <provider
        android:name="com.marianhello.bgloc.sync.DummyContentProvider"
        android:authorities="@string/content_authority"
        android:exported="false"
        android:syncable="true" />

    <service
        android:name="com.marianhello.bgloc.LocationService"
        android:enabled="true"
        android:exported="false" />

    <receiver
        android:name="com.marianhello.bgloc.BootCompletedReceiver"
        android:enabled="true"
        android:exported="true" >
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>

    <activity
        android:name="com.google.android.gms.common.api.GoogleApiActivity"
        android:exported="false"
        android:theme="@android:style/Theme.Translucent.NoTitleBar" />
</application>

christocracy commented 6 years ago

This is not the SampleApp for the Mauron85 version (which is an old fork of my original open-source project from 4 years ago. This is the SampleApp for cordeova-background-geolocation-lt