Beta [Resolved] B4A v5 Beta 1 Failed to compile

Discussion in 'Android Questions' started by fixit30, May 28, 2015.

  1. fixit30

    fixit30 Active Member Licensed User

    Just installed the beta and am unable to compile a previously good app in v4.3?

    [​IMG]



    [​IMG]
     
  2. lemonisdead

    lemonisdead Well-Known Member Licensed User

    Idem

    Code:
    AddManifestText(
    <uses-sdk android:minSdkVersion=
    "8" android:targetSdkVersion="21"/>
    <uses-permission android:name=
    "com.android.launcher.permission.INSTALL_SHORTCUT"/>
    <uses-permission android:name=
    "com.android.launcher.permission.UNINSTALL_SHORTCUT"/>
    <supports-screens android:largeScreens=
    "true"
    android:normalScreens=
    "true"
    android:smallScreens=
    "true"
    android:anyDensity=
    "true"/>)
    SetApplicationAttribute(android:theme, 
    "@android:style/Theme.Holo")
    SetApplicationAttribute(android:icon, 
    "@drawable/icon")
    SetApplicationAttribute(android:
    label"$LABEL$")
    AddApplicationText(<
    activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
    AddPermission(android.permission.CALL_PHONE)
    AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
    AddPermission(com.android.vending.CHECK_LICENSE)
    AddPermission(android.permission.ACCESS_COARSE_LOCATION)
    AddPermission(android.permission.INTERNET)
    AddPermission(android.permission.ACCESS_FINE_LOCATION)
    AddPermission(android.permission.ACCESS_NETWORK_STATE)
    AddPermission(android.permission.CHANGE_NETWORK_STATE)
    AddPermission(android.permission.ACCESS_COARSE_UPDATES)
    AddPermission(android.permission.READ_PHONE_STATE)
    AddPermission(android.permission.BLUETOOTH)
    Addpermission(android.permission.GET_ACCOUNTS)
    AddPermission(android.permission.WAKE_LOCK)
    ' addpermission(android.permission-group.MICROPHONE)
    AddReceiverText(bluetooth, <intent-filter>
    <action android:name=
    "android.bluetooth.device.action.ACL_CONNECTED"/>
    </
    intent-filter>)
    AddReceiverText(bluetooth, <
    intent-filter>
    <action android:name=
    "android.bluetooth.device.action.ACL_DISCONNECTED"/>
    </
    intent-filter>)
    AddReceiverText(sc1, <
    intent-filter>
    <action android:name=
    "android.intent.action.BOOT_COMPLETED"/>
    </
    intent-filter>)
    AddApplicationText(<receiver android:name=
    "anywheresoftware.b4a.objects.AdminManager$AdminReceiver"
    android:permission=
    "android.permission.BIND_DEVICE_ADMIN">
    <meta-data android:name=
    "android.app.device_admin"
    android:resource=
    "@xml/device_admin" />
    <
    intent-filter>
    <action android:name=
    "android.app.action.DEVICE_ADMIN_ENABLED" />
    </
    intent-filter>
    </receiver>)
    SetActivityAttribute(Main, 
    "android:excludeFromRecents""true")
     
  3. Massimiliano

    Massimiliano Member Licensed User

    Me too inside manifest at:
    SetActivityAttribute("myActivity", android:hardwareAccelerated, "false")
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is now fixed. You can use the same link to download beta #2.
     
  5. fixit30

    fixit30 Active Member Licensed User

    I can confirm Beta #2 fixes the issue.

    Fantastic work Erel as usual!
     
  6. asales

    asales Well-Known Member Licensed User

  7. Massimiliano

    Massimiliano Member Licensed User

    Now with beta2 it's working fine!!! :)

    Only one answer Erel (or request): since for different projects I'll use different private Keys, it seems that B4A uses always the latest one loaded
    Why to not add private Keys per project? Probably I'm thinking wrong .....
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    In most cases it is better to use the same key for all projects. However there are cases where you want to use multiple keys. Better support for multiple keys will be added in the future.
     
    Peter Simpson likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice